Search found 8 matches
- Sun Jan 16, 2022 4:25 pm
- Forum: Development of MicroPython
- Topic: Workflow/tool for testing
- Replies: 0
- Views: 14565
Workflow/tool for testing
Hey, I am currently working on a modbus module for the esp32 port using the freemodbus lib of ESP-IDF. Does anyone know a good tool or python module for testing such things? Every time I change something I have to flash 2 ESP32 with the new image and copy/paste my code into the repl. Since my tests ...
- Fri Jan 07, 2022 10:39 pm
- Forum: Development of MicroPython
- Topic: LoadProhibited when calling a lambda function from C
- Replies: 4
- Views: 19070
Re: LoadProhibited when calling a lambda function from C
Ok, thank you for this tip. I tried and it works :) I even can pass it as an argument, when its allocated before. Here my code, in case someone else needs it: static void wifi_sniffer_cb(void *recv_buf, wifi_promiscuous_pkt_type_t type) { wifi_promiscuous_pkt_t *sniffer = (wifi_promiscuous_pkt_t *)r...
- Wed Jan 05, 2022 5:04 pm
- Forum: Development of MicroPython
- Topic: LoadProhibited when calling a lambda function from C
- Replies: 4
- Views: 19070
Re: LoadProhibited when calling a lambda function from C
Thank you for your reply. The part with packet_info is from the example from ESP-IDF. I will change it. When I run ESP_LOGE("wifi", "1"); mp_obj_t b = mp_obj_new_bytearray(packet_info.length, sniffer->payload); ESP_LOGE("wifi", "2"); mp_call_function_1(sniffer_handler, b); ESP_LOGE("wifi", "3"); I s...
- Tue Jan 04, 2022 9:34 pm
- Forum: Development of MicroPython
- Topic: LoadProhibited when calling a lambda function from C
- Replies: 4
- Views: 19070
LoadProhibited when calling a lambda function from C
Hello, Happy new year :) i am trying to build a tool to analyse my wifi with an ESP32. In ESP-IDF there is an example for that: https://github.com/espressif/esp-idf/tree/v4.3/examples/wifi/simple_sniffer For that, you have to define a callback (in C) and pass it to esp_wifi_set_promiscuous_rx_cb. It...
- Sun Apr 18, 2021 12:46 pm
- Forum: ESP32 boards
- Topic: LAN-Support with ESP-IDF 4
- Replies: 4
- Views: 2627
LAN-Support with ESP-IDF 4
Hello, I added LAN-Support in my MicroPython-Fork. I would like to create a merge request, to make it available for everybody, but I have 3 Problems: 1. I am not completly familiar with Github. Can someone tell me the steps to create a merge request for the main repo? Especially what do I have to co...
- Thu Jan 28, 2021 5:23 pm
- Forum: Programs, Libraries and Tools
- Topic: Error installing '...': , packages may be partially installed
- Replies: 1
- Views: 1942
Re: Error installing '...': , packages may be partially installed
I tried some different ways (other parameters in setup, other folder structure, ...) but still get the same output. I can install it in normal Python using:
Is there a way to get more output from upip?
I don't have any more ideas...
Code: Select all
pip3 install micropython-eydam-prototyping-logging
I don't have any more ideas...
- Fri Jan 22, 2021 4:57 pm
- Forum: Programs, Libraries and Tools
- Topic: DHT Library for ESP
- Replies: 8
- Views: 7008
Re: DHT Library for ESP
There is a DHT driver already integrated in MicroPython:
http://docs.micropython.org/en/latest/e ... dht-driver
Does this answer your question?
http://docs.micropython.org/en/latest/e ... dht-driver
Does this answer your question?
- Thu Jan 21, 2021 2:27 pm
- Forum: Programs, Libraries and Tools
- Topic: Error installing '...': , packages may be partially installed
- Replies: 1
- Views: 1942
Error installing '...': , packages may be partially installed
Hello, I tried to make my first MicroPython-Module. I uploaded it to PyPi, but I can't install it using upip. Could someone please have a look? The output of upip is: >>> import upip >>> upip.debug=True >>> upip.install("micropython-eydam-prototyping-logging") Installing to: /lib/ Queue: ['micropyth...