Example programs for MultiTech Dot devices demonstrating how to use the Dot devices and the Dot libraries for LoRa communication.

Dependencies:   ISL29011

Dependents:   Dot-Examples-delujoc

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dot_util.h Source File

dot_util.h

00001 #ifndef __DOT_UTIL_H__
00002 #define __DOT_UTIL_H__
00003 
00004 #include "mbed.h"
00005 #include "mDot.h"
00006 #include "ChannelPlans.h"
00007 #include "MTSLog.h"
00008 #include "MTSText.h"
00009 #include "ISL29011.h"
00010 #include "example_config.h"
00011 
00012 extern mDot* dot;
00013 
00014 lora::ChannelPlan* create_channel_plan();
00015 
00016 void display_config();
00017 
00018 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);
00019 
00020 void update_ota_config_id_key(uint8_t *network_id, uint8_t *network_key, uint8_t frequency_sub_band, lora::NetworkType public_network, uint8_t ack);
00021 
00022 void update_manual_config(uint8_t *network_address, uint8_t *network_session_key, uint8_t *data_session_key, uint8_t frequency_sub_band, lora::NetworkType network_type, uint8_t ack);
00023 
00024 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);
00025 
00026 void update_network_link_check_config(uint8_t link_check_count, uint8_t link_check_threshold);
00027 
00028 void join_network();
00029 
00030 void sleep_wake_rtc_only(bool deepsleep);
00031 
00032 void sleep_wake_interrupt_only(bool deepsleep);
00033 
00034 void sleep_wake_rtc_or_interrupt(bool deepsleep);
00035 
00036 void sleep_save_io();
00037 
00038 void sleep_configure_io();
00039 
00040 void sleep_restore_io();
00041 
00042 int send_data(std::vector<uint8_t> data);
00043 
00044 #endif