Program that uses the QuickStart Library to interface a SmartMesh IP mote: Connects to the default network and starts publishing a random walk value every 5 seconds.
Fork of QSL_SimplePublish by
QSL SimplePublish
SmartMesh IP QuickStart Library
- GitHub repository
- Current release used: REL-1.0.2.2
- Documentation
- Discussion
dn_lock.c@9:f723949a18b7, 2016-11-04 (annotated)
- Committer:
- jhbr
- Date:
- Fri Nov 04 14:19:34 2016 +0000
- Revision:
- 9:f723949a18b7
- Parent:
- 0:d3f5fdf2e6da
Deactivated DEBUG prints and updated mbed library to v128
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jhbr | 0:d3f5fdf2e6da | 1 | /* |
jhbr | 0:d3f5fdf2e6da | 2 | Copyright (c) 2016, Dust Networks. All rights reserved. |
jhbr | 0:d3f5fdf2e6da | 3 | |
jhbr | 0:d3f5fdf2e6da | 4 | Port of the lock module to the NUCLEO-L053R8. |
jhbr | 0:d3f5fdf2e6da | 5 | |
jhbr | 0:d3f5fdf2e6da | 6 | \license See attached DN_LICENSE.txt. |
jhbr | 0:d3f5fdf2e6da | 7 | */ |
jhbr | 0:d3f5fdf2e6da | 8 | |
jhbr | 0:d3f5fdf2e6da | 9 | #include "dn_lock.h" |
jhbr | 0:d3f5fdf2e6da | 10 | |
jhbr | 0:d3f5fdf2e6da | 11 | //=========================== variables ======================================= |
jhbr | 0:d3f5fdf2e6da | 12 | |
jhbr | 0:d3f5fdf2e6da | 13 | //=========================== prototypes ====================================== |
jhbr | 0:d3f5fdf2e6da | 14 | |
jhbr | 0:d3f5fdf2e6da | 15 | //=========================== public ========================================== |
jhbr | 0:d3f5fdf2e6da | 16 | |
jhbr | 0:d3f5fdf2e6da | 17 | void dn_lock() { |
jhbr | 0:d3f5fdf2e6da | 18 | // this sample is single threaded, no need to lock. |
jhbr | 0:d3f5fdf2e6da | 19 | } |
jhbr | 0:d3f5fdf2e6da | 20 | |
jhbr | 0:d3f5fdf2e6da | 21 | void dn_unlock() { |
jhbr | 0:d3f5fdf2e6da | 22 | // this sample is single threaded, no need to lock. |
jhbr | 0:d3f5fdf2e6da | 23 | } |
jhbr | 0:d3f5fdf2e6da | 24 | |
jhbr | 0:d3f5fdf2e6da | 25 | //=========================== private ========================================= |
jhbr | 0:d3f5fdf2e6da | 26 | |
jhbr | 0:d3f5fdf2e6da | 27 | //=========================== helpers ========================================= |
jhbr | 0:d3f5fdf2e6da | 28 |