HM_IOT_Demo / Mbed 2 deprecated mDot_LoRa_Street_light

Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_LoRa_Connect_Example by ivan florido

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers wrapper.h Source File

wrapper.h

00001 //extern "C" {
00002 #include <string>
00003 void init_mdot(void);
00004 void reset_config(void);
00005 void set_log_lavel(int logInfo);
00006 int set_public_network(int value);
00007 int set_frequency_sub_band(int config_frequency_sub_band);
00008 int set_network_name(char *config_network_name);
00009 int set_network_passphrase(char *config_network_pass);
00010 int set_txpower(int value);
00011 int set_tx_datarate(void);
00012 int set_ack(int value);
00013 int save_config(void);
00014 int join_network(void);
00015 int send_data(char *data);
00016 bool send(const std::string text);
00017 bool receive_data(char *buffer);
00018 struct packet {
00019     int type;
00020     char buffer[16];    
00021 };
00022 //}