webrepl | WebREPL client and related tools for MicroPython | Websocket library
kandi X-RAY | webrepl Summary
kandi X-RAY | webrepl Summary
WebREPL protocol includes experimental support for file transfer. This feature is currently in alpha and has known issues on systems which have it enabled (ESP8266). To use WebREPL file transfer capabilities, a separate command line utility is provided, webrepl_cli.py (file transfer is not supported via webrepl.html client). Run. to see usage information. Note that there can be only one active WebREPL connection, so while webrepl.html is connected to device, webrepl_cli.py can’t transfer files, and vice versa.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of webrepl
webrepl Key Features
webrepl Examples and Code Snippets
Community Discussions
Trending Discussions on webrepl
QUESTION
I'm currently working an IOT project requiring the transfer of sensor data between an ESP32 (a wESP32 to be exact) and a Raspberry Pi configured as a broker. From what I've read so far the MQTT protocol seems to fit my needs perfectly, I'm thus running a Mosquitto broker on the Pi as well as the MQTT simple client library provided on the micropython's GitHub repository.
The first tests performed in the MicroPython WebREPL have been successful as I've been able to receive data published from the ESP using the following code:
...ANSWER
Answered 2020-Dec-31 at 22:24In this line of code:
QUESTION
When using an ESP8266 and sending files to the board via the WebRepl I can use the machine module when typing directly into the console. However, when I send a Python script that imports the machine module to the board and import it to the console and run the method the code that uses the module doesn't run. I can access other modules and run other code that I have sent onto the board. Also when writing the Python script importing the machine module appears as an error.
Can anyone tell me what I am doing wrong when importing the machine
module from MicroPython?
ANSWER
Answered 2018-Aug-17 at 01:52After looking at your code, which most of the time will work on the MicroPython console on the esp8266. I have found in the programs I have written for the esp8266, I have had to import machine and then import time.
QUESTION
There is boot.py available by default in the micropython image.
I have tested a code, in the python module main.py. I would like to do the following
I would like to compile a image, so it makes it easier to flash it to more than 10 devices and I do not have to start webrepl.
is there a way to stop boot messages that says micropython version number etc.?
I tried the following: apparently they are already activated: https://forum.micropython.org/viewtopic.php?t=2334
I successfully compiled an image using the following: https://cdn-learn.adafruit.com/downloads/pdf/building-and-running-micropython-on-the-esp8266.pdf
Question:
how to create an image with main.py, where should this file go in this folder /home/vagrant/micropython/esp8266 ?
...ANSWER
Answered 2017-Mar-11 at 22:231) boot.py is generated by the following script:
QUESTION
I have a board with an ESP8266 chip running Micropython firmware v1.8.7. My requirement is to use WebREPL via the University Wi-Fi, which uses WPA2 Enterprise EAP-MSCHAPv2 authentication. My Google-fu so far has informed me that Arduino users have been able to connect to WPA2 Enterprise EAP-TLS (certificate based authentication) (link) but not (SSID, username, pwd) networks.
All the threads I've seen so far on the subject seem to be from mid-2016 at the very latest, so I'm wondering whether someone's been able to figure out how to do this since then. I've never dabbled in network related stuff before (nor am I a great programmer), so all the big words above are pretty new to me. I thus have the following questions:
- Is this just an inherent limitation of the ESP8266? Or can it be done? This discussion seems to suggest it can be done but the capability needs to be coded in.
- Is it possible to somehow branch out a WPA2 Personal connection from the WPA2 Enterprise that can be used by the ESP8266 as well as my PC? What I've tried so far is to attempt a hotspot using Connectify but there's been no luck there.
I appreciate any help you guys can provide. If there's any relevant info I haven't included, please let me know and I'll edit it in.
Edit: @MaximilianGerhardt This is what works for me on a WPA2 Personal:
...ANSWER
Answered 2017-Jan-09 at 19:48As I linked in the comments the problem has apparently been solved in the newest 2.0 Espressif SDK. But since you're not using the Espressif C SDK, but the python "Micropython" firmware, this change has not been yet propagated into this python firmware.
You can see the mapping of the network functions (active()
, connect()
, ifconfig()
etc) in the firmware here: https://github.com/micropython/micropython/blob/master/esp8266/modnetwork.c#L430. In line 115 you can also see the call to wifi_station_connect()
, which is a native Espressif-SDK function. Thus you'll see, the firmware doesn't yet make use of the new functions for WPA2 authentication. In line 490 you can see all the available options for authentication:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webrepl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page