Programa WARIIOT AIDI421 clase C.
Dependencies: libxDot-mbed5
Fork of mDot_claseC by
dot_util.h@0:293d4729cd57, 2020-06-03 (annotated)
- Committer:
- gabrielap
- Date:
- Wed Jun 03 15:25:22 2020 +0000
- Revision:
- 0:293d4729cd57
Programa base para proyecto con mDot en clase C.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gabrielap | 0:293d4729cd57 | 1 | #ifndef __DOT_UTIL_H__ |
gabrielap | 0:293d4729cd57 | 2 | #define __DOT_UTIL_H__ |
gabrielap | 0:293d4729cd57 | 3 | |
gabrielap | 0:293d4729cd57 | 4 | #include "mbed.h" |
gabrielap | 0:293d4729cd57 | 5 | #include "mDot.h" |
gabrielap | 0:293d4729cd57 | 6 | #include "ChannelPlans.h" |
gabrielap | 0:293d4729cd57 | 7 | #include "MTSLog.h" |
gabrielap | 0:293d4729cd57 | 8 | #include "MTSText.h" |
gabrielap | 0:293d4729cd57 | 9 | |
gabrielap | 0:293d4729cd57 | 10 | |
gabrielap | 0:293d4729cd57 | 11 | extern mDot* dot; |
gabrielap | 0:293d4729cd57 | 12 | |
gabrielap | 0:293d4729cd57 | 13 | void display_config(); |
gabrielap | 0:293d4729cd57 | 14 | |
gabrielap | 0:293d4729cd57 | 15 | 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); |
gabrielap | 0:293d4729cd57 | 16 | |
gabrielap | 0:293d4729cd57 | 17 | 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); |
gabrielap | 0:293d4729cd57 | 18 | |
gabrielap | 0:293d4729cd57 | 19 | 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); |
gabrielap | 0:293d4729cd57 | 20 | |
gabrielap | 0:293d4729cd57 | 21 | 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); |
gabrielap | 0:293d4729cd57 | 22 | |
gabrielap | 0:293d4729cd57 | 23 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
gabrielap | 0:293d4729cd57 | 24 | |
gabrielap | 0:293d4729cd57 | 25 | //void join_network(); |
gabrielap | 0:293d4729cd57 | 26 | void join_network(uint32_t delay_s); |
gabrielap | 0:293d4729cd57 | 27 | |
gabrielap | 0:293d4729cd57 | 28 | void sleep_wake_rtc_only(bool deepsleep, uint32_t time_sleep_s); |
gabrielap | 0:293d4729cd57 | 29 | |
gabrielap | 0:293d4729cd57 | 30 | void sleep_wake_interrupt_only(bool deepsleep); |
gabrielap | 0:293d4729cd57 | 31 | |
gabrielap | 0:293d4729cd57 | 32 | //void sleep_wake_rtc_or_interrupt(bool deepsleep); |
gabrielap | 0:293d4729cd57 | 33 | void sleep_wake_rtc_or_interrupt(bool deepsleep, uint32_t time_sleep_s); |
gabrielap | 0:293d4729cd57 | 34 | |
gabrielap | 0:293d4729cd57 | 35 | void sleep_save_io(); |
gabrielap | 0:293d4729cd57 | 36 | |
gabrielap | 0:293d4729cd57 | 37 | void sleep_configure_io(); |
gabrielap | 0:293d4729cd57 | 38 | |
gabrielap | 0:293d4729cd57 | 39 | void sleep_restore_io(); |
gabrielap | 0:293d4729cd57 | 40 | |
gabrielap | 0:293d4729cd57 | 41 | int send_data(std::vector<uint8_t> data); |
gabrielap | 0:293d4729cd57 | 42 | |
gabrielap | 0:293d4729cd57 | 43 | #endif |
gabrielap | 0:293d4729cd57 | 44 |