Closed DK9GZ closed 7 months ago
Hi @DK9GZ and thanks for the detailed report. I'll try to take a look at it as soon as possible.
I just checked the ublox NINA firmware:
16:43:25.274 -> WiFiNINA firmware check.
16:43:25.274 ->
16:43:26.039 -> Firmware version installed: 1.5.0
16:43:26.039 -> Latest firmware version available : 1.5.0
16:43:26.039 ->
16:43:26.039 -> Check result: PASSED
It seems to be the lastest version available (see https://github.com/arduino/nina-fw/releases).
Hi @DK9GZ I've just tried with latest library release and a Nano33 IoT and it works. Could you share exactly the code you are trying (except token off course)
Hi @cotestatnt, thanks for your investigation. The code above is exactly the code I am testing the lib with (excluding credentials). I was confused, then realized that you wrote:
It relies on ArduinoJson v6 library so, in order to use a AsyncTelegram2 object, you need to install the ArduinoJson library first.
So I downgraded my version of the ArduinoJson from 7.0.1 to 6.21.5 - et voilà: the bot answers my calls. It seems that V7 is not compatible with the Async2 lib. A look in the compiler output with V7 gives a lot of red lines (but no errors that would prevent the programming of the Arduino).
I can work with that kind workaround. Thank you!
This means you are not using the latest realease of AsyncTelegram2 (v2.3.0) which is fully compatible with ArduinoJson v7.
Something goes wrong with Arduino library manager: it shows as latest the version 2.2.3 but this is not true :rage:
Oh, I see. My Arduino IDE shows Async 2.2.3 as latest version. I updated it manually to 2.3.0 and ArduinoJson to 7.0.2. Works fine, red lines in compiler output are gone as well.
I am using an Arduino Nano 33 IoT with WifiNINA. (Arduino IDE 2.2.1, WifiNINA 1.8.14, ArduinoJson 7.0.1, Asynctelegram2 2.2.3) The board is equipped with the SSL certificate for api.telegram.org and works fine with "Universal Telegram Library" (echo example and custom code).
Using the echoBot_wifiNINA.io example sends the
message to the chat successfully, but does not react to any messages (like "test", "/test", "echo, "/echo", "123") I sent via Telegram. I would expect an echo here.
Enabling debug mode in the lib brings (creds & ids anonymized):
Furthermore, I added in AsynchTelegram2.cpp, line 93:
log_debug("Command %s, payload: %s\n", command, payload);
Resulting in:No errors, just silence. The
if (myBot.getNewMessage(msg))
below went never true. Any hint, anyone?Thanks a lot.
Finally, the complete code: