As the topic says the Cores local ip is getting set to 0.0.0.0 when i try to disconnect from the cloud. Is there a way to choose the Cores ip manually?
Here is the code i am using to get the error:
#include "application.h"
#include "spark_disable_cloud.h"
UDP Udp;
char myIpString[24];
void setup() {
Spark.connect();
//setup udp socket
Udp.begin(1000);
Serial.begin(9600);
Serial.println(Network.localIP());
IPAddress myIp = Network.localIP();
sprintf(myIpString, "%d.%d.%d.%d", myIp[0], myIp[1], myIp[2], myIp[3]);
Spark.variable("ipAddress", myIpString, STRING);
}
void loop() {
}