Wait command explain
-
HI All,
Can anyone explain me please about the wait command?
i see this in the library API:
bool wait(unsigned long ms, uint8_t cmd, uint8_t msgtype);
ms - The number of milliseconds to wait (while still processing incoming data)
cmd - The command type to wait for
msgtype - The message type to wait for- what is cmd? what types?
- if i use ms = 0 will it wait forever (or at list until message arrives)
Thanks for your help.
-
- https://www.mysensors.org/download/serial_api_20#set,-req
- No, wait 0 will wait 0 ms
-
Thanks, its clear now.