Workshop demo program
Dependencies: PinDetect mbed LoRaWAN-lib SX1272Lib
app/main.h@19:31fc997c460b, 2017-05-03 (annotated)
- Committer:
- Brandond200
- Date:
- Wed May 03 16:51:28 2017 +0000
- Revision:
- 19:31fc997c460b
- Parent:
- 7:d7cdd6804277
added a new timer to make sure the sending bool never gets stuck in the transmitting position. changed the uint8_t counting cycles for checkAlarm to a uint16_t
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sergei11522 | 7:d7cdd6804277 | 1 | #include <stdint.h> |
sergei11522 | 7:d7cdd6804277 | 2 | |
sergei11522 | 7:d7cdd6804277 | 3 | /** |
sergei11522 | 7:d7cdd6804277 | 4 | * Sets the stream of data to send over lorawan |
sergei11522 | 7:d7cdd6804277 | 5 | * @param data Array of data to send over. Must be under 64 bytes long |
sergei11522 | 7:d7cdd6804277 | 6 | * @param data_size Size of the aforementioned array |
sergei11522 | 7:d7cdd6804277 | 7 | */ |
sergei11522 | 7:d7cdd6804277 | 8 | void setDataToSend(uint8_t* data, uint16_t data_size); |
sergei11522 | 7:d7cdd6804277 | 9 | |
sergei11522 | 7:d7cdd6804277 | 10 | /** |
sergei11522 | 7:d7cdd6804277 | 11 | * Sends down the last prepared lora frame in the downlink |
sergei11522 | 7:d7cdd6804277 | 12 | */ |
sergei11522 | 7:d7cdd6804277 | 13 | bool sendLoraTransmission(); |