Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DigiLogger
Dependents: WaterLogger XbeeGateway XBee_Cooker ProjetReceiver ... more
Synchronous Operations Timeout
Following methods in this library are synchronous:
Method | Returned value when timeout expires |
---|---|
send_data | TxStatusTimeout |
get_param | AtCmdRespTimeout |
set_param | AtCmdRespTimeout |
Synchronous mean that the methods don't return until a confirmation is received or the configured timeout expires.
The SYNC_OPS_TIMEOUT_MS define configures the default timeout for these methods.
The timeout can be changed at any time through following method:
XBeeZB myXBee = XBeeZB(RADIO_TX, RADIO_RX); myXBee.set_timeout(5000); /* Set a 5000mS timeout */
And also queried:
uint16_t current_timeout = myXBee.set_timeout(5000);