From now onā¦ you will be able to select your device in the extension and click on play button to upload new firmware remotelly. You will need to create a token in your Thinger.io account the following permissions (and insert it when prompt by the extension):
I was into the Arduino OTA, but of course it limitation is that is needed to be in the same network segmentā¦ but with this it is not neccesary at all, just need the device connected to thinger server and it allows to modify the running sketch from anywhere.
Hi, @alvarolb . I was curious to learn more about the features:
The āAlerts managerā would be a functionality similar to what is already done by Endpoints, or similar to what NodeRED can do, for example, send an alert, to the email, if the device is offline for more than 3 hours?
Will the āReporting generator toolā and āReporting toolā make it possible to make reports with data from the buckets, for example, in Python or R language and send it by email?
I upload the example script with platformio to an Esp32 dev Kit and I canāt get it to work.
In platformio the card does not seem to me
Have you got it without problems?
I installed platformio (I used to code in arduino ide, so big advance for me to switch to platformio), then the thinger extension, I created the token into the instance and then set it into the thinger extension, and it shows me the actual devices created (in VSCode), and if I select some that is not online, the icon becomes red.
Specifically what you canāt do? or which step you are not able to reach? are you working with the public server or a private instance?
I use a private instance.
I have created a token with all the permissions and put in the extension
If I create a data bucket with ESP32 that I am trying to configure if that Ota data appears to me. Āæ?Āæ?
Do you create the token for the Device or general?
Hi @JAVIER_MARIN, for private instances you need to configure the extension in VSCode settings, there is a section for Thinger.io there to configure host (with your private instance), and token. The token is fine with all permissions, it should work, but it is more secure if you limit the acccess for Device and the following permissions:
I had difficulty at first because I didnāt work with VS Code. But I managed (image below). It would be nice to document this with some images.
One question: You donāt need to indicate the Thinger.io account username in the extension, but only the token?
I did some testing with the ESP8266. After successfully uploading the Firmwareā¦ It only worked when I pressed the reset button on the NodeMCU. I donāt know if this is the default behavior, but it would be better if the NodeMCU resets right after the firmware update.
Iām going to investigate if this is because Iām using USB as a power supply or if itās something from the VS Code.
I did tests powering the ESP8266 with USB and with the JACK connector.
The Firmware Upload was successful, but I only managed to get the firmware into operation by pressing the RESET button on the NodeMCU. Otherwise, NodeMCU was still running the previous firmware.
I also simulated turning off/on the NodeMCU, removing the power cable, and I was also unsuccessful. ESP8266 has not moved to the latest firmware.
Include a button to āuncheckā the device.
This functionality is important, otherwise a device will always be tagged, and the developer may confuse the āUpload by Serial USBā buttons with the āUpload by OTA/internetā buttons when updating a firmware.
It is also interesting not to select any device when resetting the VS CODE. Otherwise, the developer may mistake and āUpload by OTAā by mistake when trying to āUpload by Serialā.
I also suggest changing the deviceās background color from blue to green, to draw the developerās attention, avoiding āUpload by Serialā instead of āUpload by OTAā.
I would test what happens for ESP8266, but in theory a reboot is issued at the end of flash both for ESP32 and ESP8266 to apply the update.
Will check how to solve it.
In theory it keeps selected the latest flashed device for that project. So, if you change between projects, the flashed device will change. With the ability to deselect a device it should be solved.
VSCode Studio does not allow setting arbitrary colors on the toolbarā¦ a ānormal stateā is without any background color. You can only set backgrounds for warnings, errors, etcā¦
Is āremote consoleā definitively abandoned, or do you have a schedule to get it working?
I can successfully telnet into my ESP32 devices within the wlan, but doing that worldwide over thinger.io without requesting a port forwarding would have been ways more sexyā¦
Saving the distances, It works practically like a linux terminal, each character is echoed back to the web terminal to ensure the message arrived fine to the device.
I think it can be released tomorrow. I need to do some more testing.