|
|
@ -29,11 +29,9 @@ class BirdySlim extends PagerDevice {
|
|
|
|
if (!!data.rssi) stateSet.rssi = data.rssi
|
|
|
|
if (!!data.rssi) stateSet.rssi = data.rssi
|
|
|
|
// and if we have the 3 components of a GPS Block
|
|
|
|
// and if we have the 3 components of a GPS Block
|
|
|
|
if (!!data.latitude && !!data.longitude && !!data.lastGPSAcquisition) stateSet.gps = {
|
|
|
|
if (!!data.latitude && !!data.longitude && !!data.lastGPSAcquisition) stateSet.gps = {
|
|
|
|
gps: {
|
|
|
|
lastGPSAcquisition: data.lastGPSAcquisition,
|
|
|
|
lastGPSAcquisition: data.lastGPSAcquisition,
|
|
|
|
latitude: data.latitude,
|
|
|
|
latitude: data.latitude,
|
|
|
|
longitude: data.longitude,
|
|
|
|
longitude: data.longitude,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stateSet.lastLoRaPacket = data.metadata
|
|
|
|
stateSet.lastLoRaPacket = data.metadata
|
|
|
|
/*if (!!data.metadata && !!data.metadata.uplink_message.rx_metadata) {
|
|
|
|
/*if (!!data.metadata && !!data.metadata.uplink_message.rx_metadata) {
|
|
|
|