Here it is ...
Dependencies: libxDot-mbed5 TSL2561
Fork of Dot-Examples by
examples/inc/dot_util.h~@37:4818522075f8, 2018-07-25 (annotated)
- Committer:
- David Gutsch dgutsch@umail.iu.edu
- Date:
- Wed Jul 25 14:23:40 2018 -0400
- Revision:
- 37:4818522075f8
- Parent:
- 35:b51d482e9731
- Child:
- 39:0d4362063352
updated, with everything working (pseudo-data)
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 | 33:79e4c812d91d | 10 | #include <stdlib.h> |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 11 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 12 | extern mDot* dot; |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 13 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 14 | void display_config(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 15 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 16 | 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 | 17 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 18 | 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 | 19 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 20 | 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 | 21 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 22 | 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 | 23 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 24 | void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 25 | |
David Gutsch dgutsch@umail.iu.edu | 33:79e4c812d91d | 26 | void join_network(Serial*); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 27 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 28 | void sleep_wake_rtc_only(bool deepsleep); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 29 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 30 | void sleep_wake_interrupt_only(bool deepsleep); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 31 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 32 | void sleep_wake_rtc_or_interrupt(bool deepsleep); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 33 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 34 | void sleep_save_io(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 35 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 36 | void sleep_configure_io(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 37 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 38 | void sleep_restore_io(); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 39 | |
David Gutsch dgutsch@umail.iu.edu | 37:4818522075f8 | 40 | int send_data(std::vector<uint8_t> data, Serial *pc); |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 41 | |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 42 | /** |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 43 | a function which gets light data(manufactures data as of now |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 44 | */ |
David Gutsch dgutsch@umail.iu.edu | 33:79e4c812d91d | 45 | uint8_t get_light_data(); |
David Gutsch dgutsch@umail.iu.edu | 33:79e4c812d91d | 46 | |
David Gutsch dgutsch@umail.iu.edu | 37:4818522075f8 | 47 | void ascii_converter(char*, uint8_t, std::vector<uint8_t>*, Serial*); |
David Gutsch dgutsch@umail.iu.edu | 35:b51d482e9731 | 48 | |
David Gutsch dgutsch@umail.iu.edu | 32:cc05a2e80969 | 49 | #endif |