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.
Dependents: mDot_LoRa_Sensornode
Fork of libmDot by
Revision 3:5e805b567124, committed 2015-06-24
- Comitter:
- Mike Fiore
- Date:
- Wed Jun 24 17:21:14 2015 -0500
- Parent:
- 2:6385bf37bfe7
- Child:
- 4:94969e981dcc
- Commit message:
- example code try to join in while loop
Changed in this revision
| README.txt | Show annotated file Show diff for this revision Revisions of this file |
--- a/README.txt Wed Jun 24 17:16:30 2015 -0500
+++ b/README.txt Wed Jun 24 17:21:14 2015 -0500
@@ -68,8 +68,9 @@
// attempt to join the network
printf("joining network\r\n");
- if ((ret = dot->joinNetwork()) != mDot::MDOT_OK) {
+ while ((ret = dot->joinNetwork()) != mDot::MDOT_OK) {
log_error(dot, "failed to join network", ret);
+ wait(2);
}
// format data for sending to the gateway
