Hi --
I tried you FastClock example, and adapted it for an OLED display. However, it kept crashing. I think the problem boiled down to a missing wiThrottle.begin(&Serial) in:
void wifiOnConnect() {
...
Serial.println("connected succeeded");
wiThrottle.begin(&Serial);
wiThrottle.connect(&client);
...
}
Also, I had to comment out:
// if (wiThrottle.protocolVersionChanged) {
// Serial.print("PROTOCOL VERSION "); Serial.println(wiThrottle.protocolVersion);
// }
I think you moved that into the delegation class.
I do have a question, though. How does one program the delegation routines, or rather 'connect' them to the class WiThrottleDelegate? Do I need to subclass that? Or just write WiThrottleDelegate::receivedSpeed(int speed) { }, for example?
Thanks
David
Hi --
I tried you FastClock example, and adapted it for an OLED display. However, it kept crashing. I think the problem boiled down to a missing wiThrottle.begin(&Serial) in:
void wifiOnConnect() {
...
Serial.println("connected succeeded");
wiThrottle.begin(&Serial);
wiThrottle.connect(&client);
...
}
Also, I had to comment out:
// if (wiThrottle.protocolVersionChanged) {
// Serial.print("PROTOCOL VERSION "); Serial.println(wiThrottle.protocolVersion);
// }
I think you moved that into the delegation class.
I do have a question, though. How does one program the delegation routines, or rather 'connect' them to the class WiThrottleDelegate? Do I need to subclass that? Or just write WiThrottleDelegate::receivedSpeed(int speed) { }, for example?
Thanks
David