Skip to content

Commit 300c99e

Browse files
Working on #30
1 parent 311d07e commit 300c99e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Examples/Arduino_Ethernet_W5200/Arduino_Ethernet_W5200.ino renamed to Examples/Arduino_Ethernet_Binary/Arduino_Ethernet_Binary.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include <SPI.h>
9+
/// If you have just normal Ethernet shield, replace this crap with the normal ethernet library
910
#include <DhcpV2_0.h>
1011
#include <DnsV2_0.h>
1112
#include <EthernetClientV2_0.h>

Images/AddAsLink.png

44.6 KB
Loading

Quickbird/LocalNetworking/Manager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void MqttMessageRecieved(KeyValuePair<string, MqttMsgPublish> publishEve
100100
var rawClientID = publishEvent.Key.Replace(":", string.Empty);
101101
if (Guid.TryParse(rawClientID, out clientID) == false)
102102
{
103-
Debug.WriteLine("recieved message with invalid ClientID");
103+
Util.Toast.NotifyUserOfError($"recieved message with invalid ClientID, {clientID} is not a valid ID");
104104
}
105105
else
106106
{
@@ -112,7 +112,7 @@ private void MqttMessageRecieved(KeyValuePair<string, MqttMsgPublish> publishEve
112112
var rawData = message.Message;
113113
if (rawData.Length%SensorMessage.incomingLength != 0)
114114
{
115-
Debug.WriteLine("message recieved over MQTT has incorrect length!");
115+
Util.Toast.NotifyUserOfError($"message recieved over MQTT is invalid. it must consist of sensor readings, {SensorMessage.incomingLength} bytes long each. It's length is {rawData.Length}, not divisble by {SensorMessage.incomingLength}");
116116
}
117117
else
118118
{

0 commit comments

Comments
 (0)