Skip to content

Releases: TheThingsNetwork/arduino-device-lib

v2.3.1

24 Feb 10:37
Compare
Choose a tag to compare

v2.2.2

16 Feb 16:36
Compare
Choose a tag to compare
  • Fixed retry counter in join()
  • Introduced getHardwareEui() to get the hardware EUI out of the RN module
  • Version bump

v2.2.0

13 Feb 10:37
Compare
Choose a tag to compare
  • Fixed memory issues
  • Fixed dependency on AVR code
  • Cleaned up code
  • Removed airtime calculations

v2.1.0

27 Dec 15:13
Compare
Choose a tag to compare
  • Adds Node class (unoptimized) and example
  • Adds sleep method to Network class

v2.0.0

20 Dec 12:35
Compare
Choose a tag to compare
  • freqPlan is now a define in examples
  • calculateAirtime and airtime are now public
  • added defines for error codes and expose them as enum

v1.0.1

06 Dec 12:44
Compare
Choose a tag to compare
  • Fixes buffer overflow error (#157)
  • Changes growing list of authors to simply The Things Network (#156)

v1.0.0

05 Dec 09:18
Compare
Choose a tag to compare
  • Optimized TheThingsNetwork memory efficiency
  • Added TheThingsMessage for encoding and decoding data with protocol buffers
  • Breaking: Keys are now set as strings instead of byte arrays.
  • Breaking: Initialize class via new constructor instead of - now removed - init()
  • Breaking: Receive downlink messages via function registered via onMessage()
  • New: Set keys via provision() without actually activating
  • New: Call personalize() or join() without keys to use those already in memory
  • New: New poll() method to send single byte to check for queued downlink messages

See the documentation for details.

Old public API for TheThingsNetwork:

    int downlinkPort;
    byte downlink[64];
    void init(Stream& modemStream, Stream& debugStream);
    void reset(bool adr = true, int sf = DEFAULT_SF, int fsb = DEFAULT_FSB);
    bool personalize(const byte devAddr[4], const byte nwkSKey[16], const byte appSKey[16]);
    bool join(const byte appEui[8], const byte appKey[16]);
    int sendBytes(const byte* buffer, int length, int port = 1, bool confirm = false);
    int sendString(String message, int port = 1, bool confirm = false);
    void showStatus();

New public API for TheThingsNetwork:

    TheThingsNetwork(Stream& modemStream, Stream& debugStream, ttn_fp_t fp, uint8_t sf = TTN_DEFAULT_SF, uint8_t fsb = TTN_DEFAULT_FSB);
    void showStatus();
    void onMessage(void (*cb)(const byte* payload, size_t length, port_t port));
    bool provision(const char *appEui, const char *appKey);
    bool join(const char *appEui, const char *appKey, int8_t retries = -1, uint32_t retryDelay = 10000);
    bool join(int8_t retries = -1, uint32_t retryDelay = 10000);
    bool personalize(const char *devAddr, const char *nwkSKey, const char *appSKey);
    bool personalize();
    int8_t sendBytes(const byte* payload, size_t length, port_t port = 1, bool confirm = false);
    int8_t poll(port_t port = 1, bool confirm = false);

v0.17.0

19 Aug 09:22
Compare
Choose a tag to compare
  • Moves library from under sdk to its own repository.
  • Renames library from TheThingsUno to TheThingsNetwork and update examples.
  • Adds keywords.txt for syntax highlighting in Arduino IDE.
  • Fixes #3