This is used for sending Data to receiving mDot

Dependencies:   libmDot-dev-mbed5-deprecated ISL29011

Fork of mdot-examples by 3mdeb

Committer:
Maciej Pijanowski
Date:
Thu Jun 29 19:54:41 2017 +0200
Revision:
0:f3d9c16b08d7
Child:
4:b0ce6385d008
manual single channel example

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Maciej Pijanowski 0:f3d9c16b08d7 1 #ifndef __DOT_UTIL_H__
Maciej Pijanowski 0:f3d9c16b08d7 2 #define __DOT_UTIL_H__
Maciej Pijanowski 0:f3d9c16b08d7 3
Maciej Pijanowski 0:f3d9c16b08d7 4 #include "mbed.h"
Maciej Pijanowski 0:f3d9c16b08d7 5 #include "mDot.h"
Maciej Pijanowski 0:f3d9c16b08d7 6 #include "ChannelPlans.h"
Maciej Pijanowski 0:f3d9c16b08d7 7 #include "MTSLog.h"
Maciej Pijanowski 0:f3d9c16b08d7 8 #include "MTSText.h"
Maciej Pijanowski 0:f3d9c16b08d7 9 #include "ISL29011.h"
Maciej Pijanowski 0:f3d9c16b08d7 10 #include "example_config.h"
Maciej Pijanowski 0:f3d9c16b08d7 11
Maciej Pijanowski 0:f3d9c16b08d7 12 extern mDot* dot;
Maciej Pijanowski 0:f3d9c16b08d7 13
Maciej Pijanowski 0:f3d9c16b08d7 14 void display_config();
Maciej Pijanowski 0:f3d9c16b08d7 15
Maciej Pijanowski 0:f3d9c16b08d7 16 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);
Maciej Pijanowski 0:f3d9c16b08d7 17
Maciej Pijanowski 0:f3d9c16b08d7 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);
Maciej Pijanowski 0:f3d9c16b08d7 19
Maciej Pijanowski 0:f3d9c16b08d7 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);
Maciej Pijanowski 0:f3d9c16b08d7 21
Maciej Pijanowski 0:f3d9c16b08d7 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);
Maciej Pijanowski 0:f3d9c16b08d7 23
Maciej Pijanowski 0:f3d9c16b08d7 24 void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold);
Maciej Pijanowski 0:f3d9c16b08d7 25
Maciej Pijanowski 0:f3d9c16b08d7 26 void join_network();
Maciej Pijanowski 0:f3d9c16b08d7 27
Maciej Pijanowski 0:f3d9c16b08d7 28 void sleep_wake_rtc_only(bool deepsleep);
Maciej Pijanowski 0:f3d9c16b08d7 29
Maciej Pijanowski 0:f3d9c16b08d7 30 void sleep_wake_interrupt_only(bool deepsleep);
Maciej Pijanowski 0:f3d9c16b08d7 31
Maciej Pijanowski 0:f3d9c16b08d7 32 void sleep_wake_rtc_or_interrupt(bool deepsleep);
Maciej Pijanowski 0:f3d9c16b08d7 33
Maciej Pijanowski 0:f3d9c16b08d7 34 void sleep_save_io();
Maciej Pijanowski 0:f3d9c16b08d7 35
Maciej Pijanowski 0:f3d9c16b08d7 36 void sleep_configure_io();
Maciej Pijanowski 0:f3d9c16b08d7 37
Maciej Pijanowski 0:f3d9c16b08d7 38 void sleep_restore_io();
Maciej Pijanowski 0:f3d9c16b08d7 39
Maciej Pijanowski 0:f3d9c16b08d7 40 void send_data(std::vector<uint8_t> data);
Maciej Pijanowski 0:f3d9c16b08d7 41
Maciej Pijanowski 0:f3d9c16b08d7 42 #endif