Skip to content

Commit f895bba

Browse files
committed
Merge pull request arduino#316 from mysensors/GW-INTERNAL-MSG-SEND-WITH-SENSOR-VALUE-255
Internal messages use sensor id 255
2 parents 5406a65 + e5eb779 commit f895bba

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

libraries/MySensors/core/MyHwATMega328.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void hwDebugPrint(const char *fmt, ... ) {
187187
char fmtBuffer[300];
188188
#ifdef MY_GATEWAY_FEATURE
189189
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
190-
snprintf_P(fmtBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
190+
snprintf_P(fmtBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
191191
Serial.print(fmtBuffer);
192192
#endif
193193
va_list args;

libraries/MySensors/core/MyHwESP8266.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void hwDebugPrint(const char *fmt, ... ) {
124124
char fmtBuffer[300];
125125
#ifdef MY_GATEWAY_FEATURE
126126
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
127-
snprintf_P(fmtBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
127+
snprintf_P(fmtBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
128128
Serial.print(fmtBuffer);
129129
#endif
130130
va_list args;

libraries/MySensors/core/MyHwSAMD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void hwDebugPrint(const char *fmt, ... ) {
140140
char fmtBuffer[300];
141141
#ifdef MY_GATEWAY_FEATURE
142142
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
143-
snprintf(fmtBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
143+
snprintf(fmtBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
144144
SERIALDEVICE.print(fmtBuffer);
145145
#endif
146146
va_list args;

libraries/MySensors/core/MySensorCore.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static inline MyMessage& build(MyMessage &msg, uint8_t sender, uint8_t destinati
248248
static inline MyMessage& buildGw(MyMessage &msg, uint8_t type) {
249249
msg.sender = GATEWAY_ADDRESS;
250250
msg.destination = GATEWAY_ADDRESS;
251-
msg.sensor = 0;
251+
msg.sensor = 255;
252252
msg.type = type;
253253
mSetCommand(msg, C_INTERNAL);
254254
mSetRequestAck(msg, false);

libraries/MySensors/core/MySigningAtsha204.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void DEBUG_SIGNING_PRINTBUF(const __FlashStringHelper* str, uint8_t* buf,
6262
static char printBuffer[300];
6363
#ifdef MY_GATEWAY_FEATURE
6464
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
65-
snprintf_P(printBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
65+
snprintf_P(printBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
6666
SERIALDEVICE.print(printBuffer);
6767
#endif
6868
for (int i=0; i<sz; i++)

libraries/MySensors/core/MySigningAtsha204Soft.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void DEBUG_SIGNING_PRINTBUF(const __FlashStringHelper* str, uint8_t* buf,
6565
static char printBuffer[300];
6666
#ifdef MY_GATEWAY_FEATURE
6767
// prepend debug message to be handled correctly by controller (C_INTERNAL, I_LOG_MESSAGE)
68-
snprintf_P(printBuffer, 299, PSTR("0;0;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
68+
snprintf_P(printBuffer, 299, PSTR("0;255;%d;0;%d;"), C_INTERNAL, I_LOG_MESSAGE);
6969
SERIALDEVICE.print(printBuffer);
7070
#endif
7171
for (int i=0; i<sz; i++)

0 commit comments

Comments
 (0)