InfluxDB-Client-for-Arduino
InfluxDB-Client-for-Arduino copied to clipboard
WiFiNINA
Hello is it possible to support Arduino library WiFiNINA.h in place of ESP?
As written in #46, WiFiNINA.h is a low-level library, similar to WifiClient for ESP. This library is written on top of HTTPClient from ESP* SDKs. There is no official HTTP library and no 3rd party HTTPLib compatible with HTTPClient for ESP* devices for those Arduino Arm devices.
So, it is technically possible to add it, but not easily. I'm also not sure about memory (32KB for Arm SAMD21), but it could be ok.
Anyway, any PR is welcomed.
I would like to use a Nano 33 IoT which used a WiFiNINA. I only want to query the Influx database for the last value when the device resets. Is there any possibility to support this configuration?
@vlastahajek I guess you are sick of reading these /me too/ posts. Instead i am asking you to give a quick feasibility estimation of using the arduino-libraries/ArduinoHttpClient library, which has support for WiFiNINA.
In comparison to the ESP* SDK, it is missing support for SSL, ~~connection re-use/Persistent connections~~ (EDIT: that is there) or for easily configuring the user agent. Is this a deal breaker for communicating with InfluxDB?
In terms of how to implement this probably means to add another layer #if/#endif macros to have HTTPService call into the HTTPClient from ArduinoHttpClient (headers)?
Is that correct?
@coroa, As I already separated all HTTP related code to HTTPService to decouple InfluxDB client from HTTPClient, I will do additional small refactor to allow easy extending this library to other HTTP Clients this week.
@vlastahajek I was looking to use this with a Arduino Nano RP2040 which has ARM Cortex M0+ and also uses WiFi NINA for the Wireless
I wanted to understand if you had any progress since November before I investigate alternatives(would write to MQTT and read from python (on linux ) to send to influxdb)
If I can help in any way please advise (testing, documenting etc) I am not really great at coding production and /or low level software like this Brett
The feat/allow-extending branch of this repository has 90% working code for WiFiNINA. HTTP read timeouts were for some reason not working. It was developed against Arduino MKR WiFi 1010. You can try. I did that at end of the last year but I hadn't had time to finish it.