Classify method.
This commit is contained in:
committed by
Patrick Fallberg
parent
6dde2e428a
commit
cc00bedaa1
@@ -119,7 +119,7 @@ inline MyMessage& build (MyMessage &msg, uint8_t sender, uint8_t destination, ui
|
||||
return msg;
|
||||
}
|
||||
|
||||
char *getType(char *b, const char **index) {
|
||||
char *MyMQTT::getType(char *b, const char **index) {
|
||||
char *q = b;
|
||||
char *p = (char *)pgm_read_ptr(index);
|
||||
while (*q++ = pgm_read_byte(p++));
|
||||
|
||||
@@ -14,6 +14,7 @@ version 2 as published by the Free Software Foundation.
|
||||
|
||||
#include "MySensor.h"
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef DEBUG
|
||||
@@ -74,6 +75,7 @@ private:
|
||||
char buffer[MQTT_MAX_PACKET_SIZE];
|
||||
char convBuf[MAX_PAYLOAD*2+1];
|
||||
uint8_t buffsize;
|
||||
char *getType(char *b, const char **index);
|
||||
};
|
||||
|
||||
extern void ledTimersInterrupt();
|
||||
|
||||
Executable → Regular
+1
@@ -61,6 +61,7 @@ http://forum.mysensors.org/topic/303/mqtt-broker-gateway
|
||||
#include <MyMQTT.h>
|
||||
#include <Ethernet.h>
|
||||
|
||||
|
||||
// * Use this for IBOARD modded to use standard MISO/MOSI/SCK, see note *1 above!
|
||||
/*
|
||||
#define RADIO_CE_PIN 3 // radio chip enable
|
||||
|
||||
Reference in New Issue
Block a user