Version del programa usado para la Expo IOT 2018 - Strada Hotel
Dependencies: DHT HX711 libmDot-mbed5 ISL29011
Fork of Dot-Examples by
examples/inc/dot_util.h@15:364df461110f, 2016-10-11 (annotated)
- Committer:
- Mike Fiore
- Date:
- Tue Oct 11 16:33:45 2016 -0500
- Revision:
- 15:364df461110f
- Parent:
- 12:ec9768677cea
- Child:
- 21:09d05faf0e13
disable ACKs and enable network link checks for OTA and AUTO_OTA examples
Who changed what in which revision?
User | Revision | Line number | New 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" |
mfiore | 0:a151a6350d7f | 6 | #include "MTSLog.h" |
mfiore | 0:a151a6350d7f | 7 | #include "MTSText.h" |
mfiore | 0:a151a6350d7f | 8 | #include "ISL29011.h" |
mfiore | 0:a151a6350d7f | 9 | #include "example_config.h" |
mfiore | 0:a151a6350d7f | 10 | |
mfiore | 0:a151a6350d7f | 11 | extern mDot* dot; |
mfiore | 0:a151a6350d7f | 12 | |
mfiore | 0:a151a6350d7f | 13 | void display_config(); |
mfiore | 0:a151a6350d7f | 14 | |
Mike Fiore |
5:97ed5f2f099e | 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); |
Mike Fiore |
5:97ed5f2f099e | 16 | |
Mike Fiore |
5:97ed5f2f099e | 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); |
mfiore | 0:a151a6350d7f | 18 | |
Mike Fiore |
8:e667f4a507b1 | 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); |
Mike Fiore |
8:e667f4a507b1 | 20 | |
Mike Fiore |
12:ec9768677cea | 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); |
Mike Fiore |
12:ec9768677cea | 22 | |
Mike Fiore |
15:364df461110f | 23 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
Mike Fiore |
15:364df461110f | 24 | |
mfiore | 0:a151a6350d7f | 25 | void join_network(); |
mfiore | 0:a151a6350d7f | 26 | |
mfiore | 0:a151a6350d7f | 27 | void sleep_wake_rtc_only(bool deepsleep); |
mfiore | 0:a151a6350d7f | 28 | |
mfiore | 0:a151a6350d7f | 29 | void sleep_wake_interrupt_only(bool deepsleep); |
mfiore | 0:a151a6350d7f | 30 | |
mfiore | 0:a151a6350d7f | 31 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
mfiore | 0:a151a6350d7f | 32 | |
Mike Fiore |
7:724cb82a113e | 33 | void sleep_save_io(); |
Mike Fiore |
7:724cb82a113e | 34 | |
Mike Fiore |
7:724cb82a113e | 35 | void sleep_configure_io(); |
Mike Fiore |
7:724cb82a113e | 36 | |
Mike Fiore |
7:724cb82a113e | 37 | void sleep_restore_io(); |
Mike Fiore |
7:724cb82a113e | 38 | |
mfiore | 0:a151a6350d7f | 39 | void send_data(std::vector<uint8_t> data); |
mfiore | 0:a151a6350d7f | 40 | |
mfiore | 0:a151a6350d7f | 41 | #endif |