Skip to content

Commit 1290c68

Browse files
committed
Classify method.
1 parent 0022e9f commit 1290c68

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

libraries/MySensors/MyMQTT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ inline MyMessage& build (MyMessage &msg, uint8_t sender, uint8_t destination, ui
119119
return msg;
120120
}
121121

122-
char *getType(char *b, const char **index) {
122+
char *MyMQTT::getType(char *b, const char **index) {
123123
char *q = b;
124124
char *p = (char *)pgm_read_ptr(index);
125125
while (*q++ = pgm_read_byte(p++));

libraries/MySensors/MyMQTT.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ version 2 as published by the Free Software Foundation.
1414

1515
#include "MySensor.h"
1616

17+
1718
//////////////////////////////////////////////////////////////////
1819

1920
#ifdef DEBUG
@@ -74,6 +75,7 @@ public MySensor {
7475
char buffer[MQTT_MAX_PACKET_SIZE];
7576
char convBuf[MAX_PAYLOAD*2+1];
7677
uint8_t buffsize;
78+
char *getType(char *b, const char **index);
7779
};
7880

7981
extern void ledTimersInterrupt();

libraries/MySensors/examples/MQTTGateway/MQTTGateway.ino

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ http://forum.mysensors.org/topic/303/mqtt-broker-gateway
6161
#include <MyMQTT.h>
6262
#include <Ethernet.h>
6363

64+
6465
// * Use this for IBOARD modded to use standard MISO/MOSI/SCK, see note *1 above!
6566
/*
6667
#define RADIO_CE_PIN 3 // radio chip enable

0 commit comments

Comments
 (0)