Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sahin D.
    @seahindeniz
    Already did and these pages doesn't have the information
    I have found the source https://www.espruino.com/modules/ws.js and seems like it doesn't have readyState property. ws.jshas a boolean .connected property which I assume indicates the status of the clients connection status however, in runtime, after a socket connection gets terminated by the server, the .connected prop stays true even after calling .send method and receiving an error
    image.png
    I'll take a look at the source code when I get free and try to find the reason
    Mark Becker
    @MaBecker
    Well I think this is a striped down version of ws , you are welcome to add functions or fix bugs ;-)
    Sahin D.
    @seahindeniz
    Sure! Also, is there a repository link to the "ws.js" file?
    Sahin D.
    @seahindeniz
    Thanks!
    davidmoshal
    @davidmoshal
    Hi, wondering if there's a way to debug the tinyMQTT library (MaBecker)?
    I'm able to connect to wifi, and after that I try to connect to an mqtt server, but get no error. ie: no mqtt.on('error'). So, after connecting to wifi and then calling mqtt connect or create, no errors are thrown, but the state is not connected.
    davidmoshal
    @davidmoshal
    theoretically this should connect, correct?
    const mqtt = require("tinyMQTT").create('test.mosquitto.org');
    
    var wifi = require("Wifi");
    wifi.connect("...", {password:"...."}, function(){
      console.log("wifi connected");
      mqtt.connect();
    });
    wifi.stopAP();
    Mark Becker
    @MaBecker
    Yes, I guess an issue with wifi, but better create a conversation here http://forum.espruino.com
    davidmoshal
    @davidmoshal
    ok, moving there, but wifi is working just fine
    davidmoshal
    @davidmoshal
    Job opportunity: mentoring experienced Java/Javascript developer in setting up C/C++ environment for developing custom ESP32 firmware for espruino.
    Mark Becker
    @MaBecker
    there are two link to build documents
    Mark Becker
    @MaBecker
    ups .....
    davidmoshal
    @davidmoshal
    thanks @MaBecker , my budget is $1,000 for a few lessons on getting set up with C/C++ toolchain, firmware debugging, etc.
    Mark Becker
    @MaBecker
    are you planning to use Espruino commercial?
    davidmoshal
    @davidmoshal
    I'm planning to potentially do something commercial, undecided on Espruino vs Duktape, vs Moddable, etc.
    Mark Becker
    @MaBecker
    ok
    abhigkar
    @abhigkar
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# which nrfutil
    /usr/local/bin/nrfutil
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# which adafruit-nrfutil
    /usr/local/bin/adafruit-nrfutil
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# nrfutil version
    adafruit-nrfutil version 0.5.3.post16
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# adafruit-nrfutil version
    adafruit-nrfutil version 0.5.3.post16
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1#
    this is s bit strange I have nrgutils and adafruit-nefutil. both are in different location. But when I called both are pointing to adafruit-nrfutil
    I cannot build DFU packages
    GEN espruino_2v07.9_sparkfun.hex
    Creating DFU ZIP
    # nrfutil  pkg generate --help
    nrfutil pkg generate espruino_2v07.9_sparkfun.zip --application espruino_2v07.9_sparkfun_app.hex --application-version 0xff --hw-version 52 --sd-req 0x8C --key-file targets/nrf5x_dfu/dfu_private_key.pem  
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    Try "nrfutil --help" for help.
    
    Error: No such command "pkg".
    make: *** [make/common/NRF5X.make:453: espruino_2v07.9_sparkfun.zip] Error 2
    because adafruit-nrfutil does not have pkg argument.
    any fix? I am using WSL for Windows 10
    fanoush
    @fanoush
    they share same libraries but require different versions so cannot coexist in same python version/environment, try to install nrfutil in python2
    ysfss
    @ysfsvm

    hi, I've compiled an espruino for the id205 (it still exists in the original espruino repo). I had to change a few things to build. I think these are not critical things, at least enough to prevent the watch from booting. It shows
    WATCHDOG
    DFU 2.9.30
    booting...

    and always resets. Any ideas?

    abhigkar
    @abhigkar
    Thanks @fanoush , Ubunto 20.04 does not comes with Python2.7 and Pip2. Thus it was diffcult for me to manage different Python and Pip version.
    I got help from (here)[https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/] to install pip2 for Ubuntu20.04 and after that I uninstall adafruit-nrfutil and nrfutil from pip3
    then Install adafrit-nrfutil using pip3 nd nrfutil using pip2
    this worked !!!
    Mohammad Almechkor
    @leaderiop
    hello everybody!
    can i import modules from npm like chance.js to my esp8266
    Ákos Lukács
    @AkosLukacs
    hi
    not really, most npm modules are just too big. for example chance.js minified is 176k
    and most have dependencies that either won't work, or toob big themselves
    but you can import arbitrary js files like require("https://github.com/espruino/EspruinoDocs/blob/master/devices/PCD8544.js");
    If it's a (by npm standards) small file, it will work
    Mohammad Almechkor
    @leaderiop
    thank you @AkosLukacs
    arturoolvrs
    @arturoolvrs

    Hi everyone.
    I am connecting my ESP8266-01 to my computer using a USB to FTDI adapter. However, when I connect it to the console, it does not respond to any AT commands. Only when I reset it using its pin with the console set at 74880 baud, it prints the following message:

    ets Jan 8 2013,rst cause:2, boot mode:(3,6)
    
    load 0x40100000, len 31320, room 16 
    tail 8
    chksum 0xef
    load 0x00000000, len 0, room 0 
    tail 0
    chksum 0xef
    load 0x00000000, len 0, room 8 
    tail 0
    chksum 0xef
    csum 0xef
    csum err
    ets_main.c

    What should I do?

    Mark Becker
    @MaBecker
    Webide for ESPs use 115200 baud
    arturoolvrs
    @arturoolvrs
    I know, but at that baudrate I get random characters
    Mark Becker
    @MaBecker
    look's like something went wrong with flashing, like firmware does not match device the board need different flash flags .......