add senet packet format
Dependencies: Senet_Packet mDot_X_NUCLEO_IKS01A1 libmDot-dev-mbed5-deprecated
Fork of mDot-IKS01A1 by
dot_util.h
00001 #ifndef __DOT_UTIL_H__ 00002 #define __DOT_UTIL_H__ 00003 00004 #include "mbed.h" 00005 #include "mDot.h" 00006 #include "MTSLog.h" 00007 #include "MTSText.h" 00008 00009 extern mDot* dot; 00010 00011 void display_config(); 00012 00013 void update_ota_config_name_phrase(std::string network_name, std::string network_passphrase, uint8_t frequency_sub_band, bool public_network, uint8_t ack); 00014 00015 void update_ota_config_id_key(uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, bool public_network, uint8_t ack); 00016 00017 void update_manual_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint8_t frequency_sub_band, bool public_network, uint8_t ack); 00018 00019 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); 00020 00021 void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); 00022 00023 void join_network(); 00024 00025 void sleep_wake_rtc_only(bool deepsleep); 00026 00027 void sleep_wake_interrupt_only(bool deepsleep); 00028 00029 void sleep_wake_rtc_or_interrupt(bool deepsleep); 00030 00031 void sleep_save_io(); 00032 00033 void sleep_configure_io(); 00034 00035 void sleep_restore_io(); 00036 00037 void send_data(std::vector<uint8_t> data); 00038 00039 #endif
Generated on Tue Jul 19 2022 21:10:20 by 1.7.2