RAKWireless / WisBlock

Quickstart, tutorials and examples for the RAKwireless WisBlock product line.
https://www.rakwireless.com
MIT License
158 stars 117 forks source link

Add function declaration for send() #10

Closed lupyuen closed 3 years ago

lupyuen commented 3 years ago

Adding the declaration will fix this build error in PlatformIO...

src/main.cpp: In function 'void setup()':
src/main.cpp:91:2: error: 'send' was not declared in this scope

Thanks :-)

beegee-tokyo commented 3 years ago

Thank you for your contribution. We are (still) reworking all examples and will include your suggestion. It might be the same for other examples as well. All examples are tested on Arduino IDE, but I am aware of the differences when using PlatformIO.

lupyuen commented 3 years ago

Thanks, looking forward to the reworked examples :-)

BTW I'm happy with the simple example code for LoRaP2P_TX and LoRaP2P_RX, it's highly consistent with the example code in Apache Mynewt OS (and it's good for portability)...

https://github.com/apache/mynewt-core/blob/master/apps/loraping/src/main.c

beegee-tokyo commented 3 years ago

Not surprised that it matches with other LoRa P2P examples. Most of these examples are based on the original Semtech examples.