Modified version to include updated libmdot, mbedos, and code includes channel plan setting

Dependencies:   libmDot-mbed5

Fork of mDot_LoRa_Connect_Example_ABPA by MultiTech

Committer:
kellybs1
Date:
Sun Sep 10 05:30:38 2017 +0000
Revision:
15:abf182f4ebdc
Parent:
12:41882e27ee79
tidying up repos;

Who changed what in which revision?

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