improved api and updated readme
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ int main(void)
|
||||
TF_SendSimple(1, (pu8)"Ahoj", 5);
|
||||
TF_SendSimple(1, (pu8)"Hello", 6);
|
||||
|
||||
TF_QuerySimple(2, (pu8)"Query!", 6, testIdListener, 0);
|
||||
TF_QuerySimple(2, (pu8)"Query!", 6, testIdListener, 0, NULL);
|
||||
|
||||
demo_sleep();
|
||||
}
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ TF_Result replyListener(TF_Msg *msg)
|
||||
msg->len = (TF_LEN) strlen((const char *) msg->data);
|
||||
TF_Respond(msg);
|
||||
|
||||
// unsolicted reply - will not be handled
|
||||
// unsolicited reply - will not be handled by the ID listener, which is already gone
|
||||
msg->data = (const uint8_t *) "SPAM";
|
||||
msg->len = 5;
|
||||
TF_Respond(msg);
|
||||
|
||||
Reference in New Issue
Block a user