improved api and updated readme

This commit is contained in:
2017-10-16 00:46:30 +02:00
parent 4ad1f09f73
commit 95a7c89b98
5 changed files with 27 additions and 67 deletions
+1 -1
View File
@@ -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
View File
@@ -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);