You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently compilation fails if ArdunioJson attempts to serialize an IPAddress object.
On the surface, this makes sense because it is not something which can be directly converted to JSON. However, Serial.print(..) explicitly works, so it catches users off gaurd.
Code to convert IPAddress to a string, which can be serialized.
Hmm, Printable types implement printTo(Print& p) const. The good news, is that it looks like you can get away with just implementing size_t write(uint8_t c), on a subclass, though you could also overwrite size_t write(const uint8_t *buffer, size_t size) for more efficient operation. Then again, I'm speaking to someone who has much greater experience with the code than I do, as your "PrintWriter" shows.
Currently compilation fails if ArdunioJson attempts to serialize an IPAddress object.
On the surface, this makes sense because it is not something which can be directly converted to JSON. However, Serial.print(..) explicitly works, so it catches users off gaurd.
Code to convert IPAddress to a string, which can be serialized.
The text was updated successfully, but these errors were encountered: