Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
probonopd
@probonopd
@AdySan and an usafe option, these $1 chargers...
unsafe
@me-no-dev @Makuna could we use something like Protothreads http://dunkels.com/adam/pt/ for fades and animations?
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
@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
Aditya Tannu
@AdySan
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
Markus
@Links2004
@AdySan there is no SSH lib for Arduino, can you run a program on the computer?
Aditya Tannu
@AdySan
@Links2004 yes, basically I want a remote reboot button for my RPi, I can run any sort of host on the RPi side
Markus
@Links2004
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
@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 :)
Aditya Tannu
@AdySan
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
Markus
@Links2004

without security:
run apache + php on the pi.

<?php
exec($_POST);

use HTTP client to send a POST with the command.
if it always the same you can hardcode it.

<?php
exec("sudo reboot");
Aditya Tannu
@AdySan
@me-no-dev oh the RPi/Arduino, yes I did :smile:
Me No Dev
@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 ;)
Aditya Tannu
@AdySan
will take a dab at it, thanks!
Helio Machado
@0x2b3bfa0
@celsworth @me-no-dev @AdySan @Links2004 : http://www.ebay.co.uk/itm/171794933876?_trksid=p2060353.m2749.l2648&ssPageName=STRK%3AMEBIDX%3AIT is the biggest thing I ever met, http://www.aliexpress.com/item/Free-Shippingn-HLK-PM01-AC-DC-220V-to-5V-mini-power-supply-module-intelligent-household-switch/32319515750.html?spm=2114.13010208.99999999.282.Fp5N2o seems big to me (I've seen it on Ali the past week, thanks however). I'm searching for a power supply like this one: http://forum.mysensors.org/uploads/upload-647e8ae2-ac42-4195-8031-3d77c92bbb71.jpg from this forum
Sorry for the late reply, I was offline
Helio Machado
@0x2b3bfa0
@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).
Michael Miller
@Makuna
@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.
gonsays
@gonsays
Hello Guys!
I'm trying to ping an IP address using the CallSDKFunctions.ino
my Arduino sketch is here: http://pastebin.com/MEXhdv88

but it is not compiling:

CallSDK-v2.ino: In function 'void setup()':
CallSDK-v2:35: error: expected unqualified-id before string constant
CallSDK-v2:111: error: expected '}' at end of input
expected unqualified-id before string constant

these are the errors :sa:
do I need to call any .h file?
"ICACHE_FLASH_ATTR"
I think the problem is here
Markus
@Links2004
remove the ICACHE_FLASH_ATTR its not need, it automatically in flash
and move #include "Esp.h" out of the extern.
void setup() {
    Serial.begin(115200);
  #ifdef ESP8266
  extern "C" {
void ICACHE_FLASH_ATTR user_ping_recv(void *arg, void *pdata){
you can not create a function in a function
and no extern "C" { in this case.
gonsays
@gonsays
thank you so much!
no extern "C" here, but the function must be inside the ifdef right?