I have a sketch that does MQTT, OTA and Neopixels now.
But adding animation to it is not easy
so I wonder whether something like Protothreads could help to make it easier
e.g., instead of strip.SetPixelColor(0, blue); I would like to strip.FadePixelColor(0,1000,blue);
without adding someting to loop() that I need to take care of/that interferes with OTA, MQTT and other stuff
Me No Dev
ideally OTA and MQTT should run async and your pixels in the loop
then you would not have that problem
OTA needs attention after successful handshake with the computer
and that has tomeout of around 10-20 seconds
do not worry much about OTA
maybe if Espressif gets RTOS for ESP at the same level as NON_OS (this) we will move over and forget about issues like this one
hi all, would it be possible to make a SSH client using the arduino core, basically I want to make a dash-button like device, which will ssh into a certain computer and run something. Any other approaches are welcome too, as long as I can run a root level command at the terminal
@AdySan there is no SSH lib for Arduino, can you run a program on the computer?
@Links2004 yes, basically I want a remote reboot button for my RPi, I can run any sort of host on the RPi side
ok simple start a https webserver that runs a script that exec your command by sudo. but think about how to secure (only allow the ESP to run stuff)
Me No Dev
@AdySan you can write your own server for the Pi the same way you write for the ESP
99% the same code
I know you've seen the repository :)
interesting, was planning to have a remote display using VNC library made by @Links2004 but in case the RPi freezes or the VNC server is not up for some reason, it would be nice to have a backup option which can reboot or start the vnc server
without security: run apache + php on the pi.
use HTTP client to send a POST with the command. if it always the same you can hardcode it.
@me-no-dev oh the RPi/Arduino, yes I did :smile:
Me No Dev
I have fully integrated the Bridge lirary API so you can do just about anything
even control what's going on on the HDMI screen
you can hack custom server to talk to the esp and execute whatever easily ;)
@martinayotte@Links2004: These are my current emergency solutions (waiting for), however I expect to find anything smaller (like that one in the picture). That circuit is based on LNK306, however I couldn't find that circuit already mounted. I ordered 10 chips of that on Ali to DIM (do it myself).
@probonopd my library support async animations, but does require rethinking on your part on how they work. This is topic best brought up on my Gitter group. But look at the NeoPixelAnimator class. You can provide the function that does the specific update of the pixel and it will be called periodically with a progress that you use to define the animation.
I need to create a good sample for it, but there are examples of its use in the provided samples.
Remember, this project is about Arduino, it isn't inherently async so it doesn't solve these issues for you. We should strive for compatibility with Arduino first.
I'm trying to ping an IP address using the CallSDKFunctions.ino