Search found 9 matches
- Wed Aug 24, 2022 7:07 am
- Forum: ESP32 boards
- Topic: BLE does not support config 'addr_mode'?
- Replies: 2
- Views: 14653
Re: BLE does not support config 'addr_mode'?
You can only set the addr_mode, not query. It does work on ESP32. MicroPython v1.19.1-278-g6dfb462ef on 2022-08-13; TinyPICO with ESP32-PICO-D4 Type "help()" for more information. >>> import bluetooth >>> ble = bluetooth.BLE() >>> ble.config(addr_mode=2) >>> I see,that why it gave me error when i t...
- Wed Aug 24, 2022 6:08 am
- Forum: ESP32 boards
- Topic: BLE does not support config 'addr_mode'?
- Replies: 2
- Views: 14653
BLE does not support config 'addr_mode'?
Does esp32 port BLE does not support config('addr_mode') https://docs.micropython.org/en/latest/library/bluetooth.html?highlight=addr_mode when i tried to setting addr_mode,it gave me error example code: >>> from ubluetooth import BLE ble = BLE() ble.active(True) ble.config('addr_mode') True Traceba...
- Fri Jul 15, 2022 9:24 am
- Forum: ESP32 boards
- Topic: wifi and ble not reliable on esp32-c3 port
- Replies: 6
- Views: 61128
Re: wifi and ble not reliable on esp32-c3 port
updated test code to better describe the problem i mentioned about ble. as for uftpd module and wifi,look like there is some error/glitch on uftpd module side. output from esp32 port before i stopped the execution(no issue): - - - = = = 805 = = = - - - b'f3f06b581563' connected! [(0, b'f3f06b581563'...
- Wed Jul 13, 2022 4:04 am
- Forum: ESP32 boards
- Topic: wifi and ble not reliable on esp32-c3 port
- Replies: 6
- Views: 61128
Re: wifi and ble not reliable on esp32-c3 port
in my experience wifi and ble function not reliable.when using ble ,sometime it won't function after connect and disconnect cycle.when using utfpd on wifi connection,it can only can transfer 1kb of data and then not responding.the program i have written works flawlessly on esp32 port(tested on loli...
- Wed Jul 13, 2022 3:20 am
- Forum: ESP32 boards
- Topic: wifi and ble not reliable on esp32-c3 port
- Replies: 6
- Views: 61128
Re: wifi and ble not reliable on esp32-c3 port
Sounds abnormal. What about the other features of the board? Can you upload codes to it? please check attached file. error output when running the code: connection time : 1122 min: 413 mean: 1223 max: 2424 connect delay: 3000 ct: 20 cd: 19 cf: 1 connection time : 1142 min: 413 mean: 1219 max: 2424 ...
- Tue Jul 12, 2022 7:46 am
- Forum: ESP32 boards
- Topic: wifi and ble not reliable on esp32-c3 port
- Replies: 6
- Views: 61128
wifi and ble not reliable on esp32-c3 port
i have tried using firmware version 1.18 and the latest version 1.19.1 on esp32-c3 port(currently i have ai-thinker and liligo ttgo-oi-plus). in my experience wifi and ble function not reliable.when using ble ,sometime it won't function after connect and disconnect cycle.when using utfpd on wifi con...
- Wed Jun 08, 2022 3:55 am
- Forum: General Discussion and Questions
- Topic: exec on micropython does not recognize local variable
- Replies: 2
- Views: 4981
Re: exec on micropython does not recognize local variable
In this case, it is different to CPython (to reduce memory use). See this documented difference: Code running in eval() function doesn’t have access to local variables Thank you very much,you point me to the right direction. :D i was able to make it works using these code example: a = 1 b = 2 c = 3...
- Mon Jun 06, 2022 2:08 pm
- Forum: General Discussion and Questions
- Topic: exec on micropython does not recognize local variable
- Replies: 2
- Views: 4981
exec on micropython does not recognize local variable
example code: a = 1 b = 2 c = 3 def plus_one(number): code = 'print(a,b,c,number)' exec(code) plus_one(4) on micropython: MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32 Type "help()" for more information. >>> %Run -c $EDITOR_CONTENT Traceback (most recent call last): File "<stdin>", line 9...
- Tue May 03, 2022 10:03 am
- Forum: Programs, Libraries and Tools
- Topic: mpyaes - utility library around ucryptolib.aes
- Replies: 4
- Views: 7141
Re: mpyaes - utility library around ucryptolib.aes
Hello all. mpyaes (GitHub) is a utility library around ucryptolib's aes class. It handles AES encryption and decryption of bytes-like objects and files, and implements PKCS7 padding, which is handled in the background. Encrypting and decrypting files makes use of a block-sized buffer and memoryview...