Closed datacute closed 4 years ago
Thank your for submiting, please be sure you followed template or your issue may be dismissed.
yes indeed should be uint32_t
void SSDPClass::setInterval(uint32_t interval)
{
_interval = interval;
}
fixed - thank you https://github.com/luc-github/ESP32SSDP/commit/803e713c0a4a132f2db7ea317d2e83f02a990024 ^_^
Using platformio to compile https://github.com/sharandac/My-TTGO-Watch (which uses this library), gives a warning:
.pio\libdeps\ttgo-t-watch\ESP32SSPD\ESP32SSDP.cpp: In constructor 'SSDPClass::SSDPClass()': .pio\libdeps\ttgo-t-watch\ESP32SSPD\ESP32SSDP.cpp:112:19: warning: large integer implicitly truncated to unsigned type [-Woverflow] _notify_time(0) ^
This is actually because of the earlier line in the constructor: _interval(SSDP_INTERVAL),
Where _interval is uint8_t and SSDP_INTERVAL is 1200
Should _interval be uint32_t or unsigned long instead?