Skip to content

Commit

Permalink
Move extern declaration for node ID to sdk.h
Browse files Browse the repository at this point in the history
This allows to re-use it for upcoming websocket implementation.
  • Loading branch information
martinjaeger committed Jul 22, 2023
1 parent 0556587 commit 66e9a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions include/thingset/sdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ extern "C" {
#define THINGSET_INIT_PRIORITY_SDK 40
#define THINGSET_INIT_PRIORITY_DEFAULT 60

extern char node_id[17];
extern uint8_t eui64[8];

extern bool pub_events_enable;

extern bool live_reporting_enable;
Expand Down
3 changes: 0 additions & 3 deletions src/lorawan.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ BUILD_ASSERT(DT_NODE_HAS_STATUS(LORA_RADIO_NODE, okay), "No LoRa radio specified

static uint8_t tx_buf[51];

extern char node_id[17];
extern uint8_t eui64[8];

char lorawan_join_eui[8 * 2 + 1] = "0000000000000000";
char lorawan_app_key[16 * 2 + 1] = "";
uint32_t lorawan_dev_nonce;
Expand Down

0 comments on commit 66e9a20

Please sign in to comment.