
Here it is ...
Dependencies: libxDot-mbed5 TSL2561
Fork of Dot-Examples by
examples/inc/dot_util.h~@32:cc05a2e80969, 2018-07-12 (annotated)
- Committer:
- David Gutsch dgutsch@umail.iu.edu
- Date:
- Thu Jul 12 12:54:47 2018 -0400
- Revision:
- 32:cc05a2e80969
- Child:
- 33:79e4c812d91d
it finally works! swapped the config function, changed join_delay from 5 to 1, and made small changes to pass serial address to different function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 1 | #ifndef __DOT_UTIL_H__ |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 2 | #define __DOT_UTIL_H__ |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 3 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 4 | #include "mbed.h" |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 5 | #include "mDot.h" |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 6 | #include "ChannelPlans.h" |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 7 | #include "MTSLog.h" |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 8 | #include "MTSText.h" |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 9 | #include "example_config.h" |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 10 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 11 | extern mDot* dot; |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 12 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 13 | void display_config(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 14 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 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); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 16 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 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); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 18 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 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); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 20 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 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); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 22 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 23 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 24 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 25 | void join_network(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 26 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 27 | void sleep_wake_rtc_only(bool deepsleep); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 28 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 29 | void sleep_wake_interrupt_only(bool deepsleep); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 30 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 31 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 32 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 33 | void sleep_save_io(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 34 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 35 | void sleep_configure_io(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 36 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 37 | void sleep_restore_io(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 38 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 39 | void send_data(std::vector<uint8_t> data); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 40 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 41 | #endif |