Henry Greenslade
/
mDot-HelloWorld-ABP-AU915
Working helloworld for mDot. ABP auth.
inc/dot_util.h@15:e2e07c0f25fa, 2019-08-04 (annotated)
- Committer:
- GreensladeNZ
- Date:
- Sun Aug 04 10:48:46 2019 +0000
- Revision:
- 15:e2e07c0f25fa
- Parent:
- 10:02615da7a9fe
Working.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kellybs1 | 10:02615da7a9fe | 1 | #ifndef __DOT_UTIL_H__ |
kellybs1 | 10:02615da7a9fe | 2 | #define __DOT_UTIL_H__ |
kellybs1 | 10:02615da7a9fe | 3 | |
kellybs1 | 10:02615da7a9fe | 4 | #include "mbed.h" |
kellybs1 | 10:02615da7a9fe | 5 | #include "mDot.h" |
kellybs1 | 10:02615da7a9fe | 6 | #include "ChannelPlans.h" |
kellybs1 | 10:02615da7a9fe | 7 | #include "MTSLog.h" |
kellybs1 | 10:02615da7a9fe | 8 | #include "MTSText.h" |
kellybs1 | 10:02615da7a9fe | 9 | |
kellybs1 | 10:02615da7a9fe | 10 | |
kellybs1 | 10:02615da7a9fe | 11 | extern mDot* dot; |
kellybs1 | 10:02615da7a9fe | 12 | |
kellybs1 | 10:02615da7a9fe | 13 | void display_config(); |
kellybs1 | 10:02615da7a9fe | 14 | |
kellybs1 | 10:02615da7a9fe | 15 | 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); |
kellybs1 | 10:02615da7a9fe | 16 | |
kellybs1 | 10:02615da7a9fe | 17 | 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); |
kellybs1 | 10:02615da7a9fe | 18 | |
kellybs1 | 10:02615da7a9fe | 19 | 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); |
kellybs1 | 10:02615da7a9fe | 20 | |
kellybs1 | 10:02615da7a9fe | 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); |
kellybs1 | 10:02615da7a9fe | 22 | |
kellybs1 | 10:02615da7a9fe | 23 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
kellybs1 | 10:02615da7a9fe | 24 | |
kellybs1 | 10:02615da7a9fe | 25 | void join_network(); |
kellybs1 | 10:02615da7a9fe | 26 | |
kellybs1 | 10:02615da7a9fe | 27 | void sleep_wake_rtc_only(bool deepsleep); |
kellybs1 | 10:02615da7a9fe | 28 | |
kellybs1 | 10:02615da7a9fe | 29 | void sleep_wake_interrupt_only(bool deepsleep); |
kellybs1 | 10:02615da7a9fe | 30 | |
kellybs1 | 10:02615da7a9fe | 31 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
kellybs1 | 10:02615da7a9fe | 32 | |
kellybs1 | 10:02615da7a9fe | 33 | void sleep_save_io(); |
kellybs1 | 10:02615da7a9fe | 34 | |
kellybs1 | 10:02615da7a9fe | 35 | void sleep_configure_io(); |
kellybs1 | 10:02615da7a9fe | 36 | |
kellybs1 | 10:02615da7a9fe | 37 | void sleep_restore_io(); |
kellybs1 | 10:02615da7a9fe | 38 | |
kellybs1 | 10:02615da7a9fe | 39 | void send_data(std::vector<uint8_t> data); |
kellybs1 | 10:02615da7a9fe | 40 | |
kellybs1 | 10:02615da7a9fe | 41 | #endif |