Sensor Code By Jorge Troncoso

Dependencies:   Sensor2 MAX31855-1 libmDot-1

Fork of 0A101_mDot_Sensor_Rev3_AUS by Jorge Troncoso

Revision:
2:0417c5cdceaf
Parent:
0:1441b10e38a6
--- a/radio_sensor.cpp	Thu Jan 04 03:44:09 2018 +0000
+++ b/radio_sensor.cpp	Wed Jun 13 11:31:15 2018 +0000
@@ -20,14 +20,31 @@
 
 mDot* dot = NULL;
 
-// Network settings.
-static uint8_t radio_network_address[]     = {0x65, 0x34, 0x03, 0x04};
-static uint8_t radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
-static uint8_t radio_data_session_key[]    = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+
+// Radio settings.
+
+/*    Singapore JTRON2
+uint8_t  radio_network_address[]     = {0x65, 0x34, 0x03, 0x03};
+uint8_t  radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+uint8_t  radio_data_session_key[]    = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+*/
+
+/*    USA Tom JTRON4
+uint8_t  radio_network_address[]     = {0x65, 0x34, 0x03, 0x02};
+uint8_t  radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+uint8_t  radio_data_session_key[]    = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+*/
+
+/*    Australia  JTRON6
+uint8_t  radio_network_address[]     = {0x65, 0x34, 0x03, 0x04};
+uint8_t  radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+uint8_t  radio_data_session_key[]    = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04};
+*/
 
 static uint8_t radio_packet_current_id;
 
 
+
 extern int8_t radio_sensor_init(enum mts::MTSLog::logLevel logging_level) {
     uint8_t radio_data_rate, radio_power, radio_frequency_band;
     uint32_t radio_frequency;