Hello to everyone. I have troubles to receive TAG’s on dashboard. I need to specify the TAG for custom WebHooks. My sketch:
#include <OneWire.h>
#include <DallasTemperature.h>
OneWire ourWire(D02); //Se establece el pin 2 como bus OneWire
DallasTemperature sensors(&ourWire); //Se declara una variable u objeto para nuestro sensor
//------------VARIABLES----------------//
int codigoSensorTemperatura = 387;
int codigoSensorBoya = 514;
int delayBoya = 3000;
int delayTemperatura = 27000;
int hayAgua = 0;
int noHayAgua = 1;
String tagTemperatura = "_TEMPERATURA_";
String tagBoya = "_BOYA_";
const int pinTemperatura = D02;
const int pinBoya = D03;
unsigned long startTimeBoya;
unsigned long startTimeTemperatura;
//------------VARIABLES----------------//
void setup() {
SerialUSB.begin(9600);
pinMode(D02 , INPUT);
startTimeBoya = millis();
startTimeTemperatura = millis();
sensors.begin(); //Se inicia el sensor de temperatura
rtc_datetime_t dt;
if (HologramCloud.getNetworkTime(dt)) {
Clock.setDateTime(dt);
}
}
void loop() {
if (delayBoya != 0) {
procesoBoya();
}
if (delayTemperatura != 0) {
procesoTemperatura();
}
}
//Proceso funcionalidad de la boya
void procesoBoya() {
String boya = "1";
if (millis() > startTimeBoya + delayBoya) {
HologramCloud.sendMessage(boya , tagBoya);
startTimeBoya = millis();
}
}
//Proceso funcionalidad sensor de temperatura
void procesoTemperatura() {
if (millis() > startTimeTemperatura + delayTemperatura) {
startTimeTemperatura = millis();
}
}
When i receive the data on dashboard it only show’s me this three tags:
_DEVICE_XXXXXX_
_SIMPLESTRING_
_SOCKETAPI_
Thanks