Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack

Committer:
Taylor Heck
Date:
Tue May 25 09:54:33 2021 -0500
Revision:
42:20f6b29a9903
Parent:
33:15ea8f985c54
Target mbed-os 6 and Dot Library version 4.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mfiore 0:a151a6350d7f 1 #ifndef __DOT_UTIL_H__
mfiore 0:a151a6350d7f 2 #define __DOT_UTIL_H__
mfiore 0:a151a6350d7f 3
mfiore 0:a151a6350d7f 4 #include "mbed.h"
mfiore 0:a151a6350d7f 5 #include "mDot.h"
Mike Fiore 21:09d05faf0e13 6 #include "ChannelPlans.h"
mfiore 0:a151a6350d7f 7 #include "MTSLog.h"
mfiore 0:a151a6350d7f 8 #include "MTSText.h"
Evan Hosseini 30:2f5ae37e6c47 9 #include "ISL29011.h"
mfiore 0:a151a6350d7f 10 #include "example_config.h"
mfiore 0:a151a6350d7f 11
mfiore 0:a151a6350d7f 12 extern mDot* dot;
mfiore 0:a151a6350d7f 13
Taylor Heck 42:20f6b29a9903 14 lora::ChannelPlan* create_channel_plan();
Taylor Heck 42:20f6b29a9903 15
mfiore 0:a151a6350d7f 16 void display_config();
mfiore 0:a151a6350d7f 17
Evan Hosseini 31:b1d5811e3d5d 18 void update_ota_config_name_phrase(std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, lora::NetworkType network_type, uint8_t ack);
Mike Fiore 5:97ed5f2f099e 19
Evan Hosseini 32:febff0fd3195 20 void update_ota_config_id_key(uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, lora::NetworkType public_network, uint8_t ack);
mfiore 0:a151a6350d7f 21
Evan Hosseini 32:febff0fd3195 22 void update_manual_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint8_t frequency_sub_band, lora::NetworkType network_type, uint8_t ack);
Mike Fiore 8:e667f4a507b1 23
Mike Fiore 12:ec9768677cea 24 void update_peer_to_peer_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint32_t tx_frequency, uint8_t tx_datarate, uint8_t tx_power);
Mike Fiore 12:ec9768677cea 25
Mike Fiore 15:364df461110f 26 void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold);
Mike Fiore 15:364df461110f 27
mfiore 0:a151a6350d7f 28 void join_network();
mfiore 0:a151a6350d7f 29
mfiore 0:a151a6350d7f 30 void sleep_wake_rtc_only(bool deepsleep);
mfiore 0:a151a6350d7f 31
mfiore 0:a151a6350d7f 32 void sleep_wake_interrupt_only(bool deepsleep);
mfiore 0:a151a6350d7f 33
mfiore 0:a151a6350d7f 34 void sleep_wake_rtc_or_interrupt(bool deepsleep);
mfiore 0:a151a6350d7f 35
Mike Fiore 7:724cb82a113e 36 void sleep_save_io();
Mike Fiore 7:724cb82a113e 37
Mike Fiore 7:724cb82a113e 38 void sleep_configure_io();
Mike Fiore 7:724cb82a113e 39
Mike Fiore 7:724cb82a113e 40 void sleep_restore_io();
Mike Fiore 7:724cb82a113e 41
jreiss 33:15ea8f985c54 42 int send_data(std::vector<uint8_t> data);
mfiore 0:a151a6350d7f 43
mfiore 0:a151a6350d7f 44 #endif