tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
587 stars 182 forks source link

examples: New lorawan basic-demo example #504

Closed ofauchon closed 1 year ago

ofauchon commented 1 year ago

"basic-demo" is an example application for connecting a Lorawan Network. It's written to be as simple as possible so you can easily reuse it.

All the code shared between examples had been moved in a common package.

deadprogram commented 1 year ago

I think that perhaps a more bare bones rx-type example might be more useful than another console style application. Something that joins, then creates some periodic sensor readings maybe?

ofauchon commented 1 year ago

I think that perhaps a more bare bones rx-type example might be more useful than another console style application. Something that joins, then creates some periodic sensor readings maybe?

Yes, you're right. Let's strip it down

ofauchon commented 1 year ago

There was something wrong with DevNounce encoding/endianness. Fixed in this branch, but the code needs review ...

Anyways, Join and Uplinks are working with this PR. Please give a try . Thx