test
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_LoRa_Connect_Example by
wrapper.h@6:f87d57498fd0, 2017-11-08 (annotated)
- Committer:
- hmiot
- Date:
- Wed Nov 08 12:10:51 2017 +0000
- Revision:
- 6:f87d57498fd0
- Parent:
- 2:20a5d4681abf
Updated for Zigo Demo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hariom | 2:20a5d4681abf | 1 | //extern "C" { |
hariom | 2:20a5d4681abf | 2 | #include <string> |
hariom | 2:20a5d4681abf | 3 | void init_mdot(void); |
hariom | 2:20a5d4681abf | 4 | void reset_config(void); |
hariom | 2:20a5d4681abf | 5 | void set_log_lavel(int logInfo); |
hariom | 2:20a5d4681abf | 6 | int set_public_network(int value); |
hariom | 2:20a5d4681abf | 7 | int set_frequency_sub_band(int config_frequency_sub_band); |
hariom | 2:20a5d4681abf | 8 | int set_network_name(char *config_network_name); |
hariom | 2:20a5d4681abf | 9 | int set_network_passphrase(char *config_network_pass); |
hariom | 2:20a5d4681abf | 10 | int set_txpower(int value); |
hariom | 2:20a5d4681abf | 11 | int set_tx_datarate(void); |
hariom | 2:20a5d4681abf | 12 | int set_ack(int value); |
hariom | 2:20a5d4681abf | 13 | int save_config(void); |
hariom | 2:20a5d4681abf | 14 | int join_network(void); |
hariom | 2:20a5d4681abf | 15 | int send_data(char *data); |
hariom | 2:20a5d4681abf | 16 | bool send(const std::string text); |
hariom | 2:20a5d4681abf | 17 | bool receive_data(char *buffer); |
hariom | 2:20a5d4681abf | 18 | struct packet { |
hariom | 2:20a5d4681abf | 19 | int type; |
hariom | 2:20a5d4681abf | 20 | char buffer[16]; |
hariom | 2:20a5d4681abf | 21 | }; |
hariom | 2:20a5d4681abf | 22 | //} |