5024-09-3001
This commit is contained in:
parent
e5b2a06101
commit
a4817f27f1
|
@ -33,6 +33,7 @@ Ticker Tic;
|
||||||
static BLEAddress *pServerAddress;
|
static BLEAddress *pServerAddress;
|
||||||
BLEScan* pBLEScan ;
|
BLEScan* pBLEScan ;
|
||||||
int scanTime = 5; //In seconds
|
int scanTime = 5; //In seconds
|
||||||
|
bool Status = false;
|
||||||
|
|
||||||
long int Feldstaerke;
|
long int Feldstaerke;
|
||||||
|
|
||||||
|
@ -204,6 +205,7 @@ void loop()
|
||||||
client.publish(topic, "DA", true);
|
client.publish(topic, "DA", true);
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.print(topic); Serial.println(" DA");
|
Serial.print(topic); Serial.println(" DA");
|
||||||
|
Status = true;
|
||||||
} else {
|
} else {
|
||||||
sprintf(topic, "%s%s%s", "hjk/devices/", ORT, "/telemetry/status" );
|
sprintf(topic, "%s%s%s", "hjk/devices/", ORT, "/telemetry/status" );
|
||||||
client.publish(topic, "FERN", true);
|
client.publish(topic, "FERN", true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user