example using LOF sensor board and MEMS sensor board. not using senet packet format

Dependencies:   ST_INTERFACES Senet_Packet X_NUCLEO_53L0A1 X_NUCLEO_COMMON X_NUCLEO_IKS01A1 libmDot-mbed5

Fork of unh-hackathon-example by Mike Fiore

Committer:
Mike Fiore
Date:
Sat Apr 08 11:06:17 2017 -0400
Revision:
5:1a52bf3f0fb9
add lora communication. sending temperature, distance, and pressure in senet packet format so it can be viewed on exosite

Who changed what in which revision?

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