Search found 39 matches

by mflmartin
Tue Mar 02, 2021 7:30 pm
Forum: General Discussion and Questions
Topic: base64 module not found
Replies: 2
Views: 54

base64 module not found

When I try to import base64 or ubase64, I get no module named base64: Is there anything that have to be done in order to activate it? Thanks so much. MicroPython v1.13 on 2020-09-02; ESP32 module with ESP32 Type "help()" for more information. >>> import base64 Traceback (most recent call last): File...
by mflmartin
Thu Feb 25, 2021 10:27 pm
Forum: General Discussion and Questions
Topic: SRP (Secure Remote Password)
Replies: 1
Views: 64

SRP (Secure Remote Password)

Hi!

Has anyone managed to use SRP in micropython? In particular this lib:
https://github.com/cocagne/pysrp

But I am afraid, because of some dependencies, that it doesn't work with micropython. Is there any alternative that someone knows of?

Thanks!
by mflmartin
Thu Feb 11, 2021 10:30 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 424

Re: Bluetooth simple connection & parsing of results

Ahhhhhhhhmigo. I understand. Makes sense. I will do further testing! Thanks!
by mflmartin
Tue Feb 09, 2021 11:14 am
Forum: General Discussion and Questions
Topic: bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.
Replies: 3
Views: 329

Re: bluetooth.gattc_read only returns _IRQ_GATTC_READ_DONE event.

I am having the exact same problem. Did you manage to solve it?

Thanks,
by mflmartin
Tue Feb 09, 2021 10:50 am
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 424

Re: Bluetooth simple connection & parsing of results

Hummm: I get Status: 258, but the READ_RESULT never fires.
by mflmartin
Mon Feb 08, 2021 11:48 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 424

Re: Bluetooth simple connection & parsing of results

Thanks, I thought that was what I had to do. I modified it that way, but I get no event in GATTC_READ_RESULT, however I get the IRQ_GATTC_READ_DONE every 3 seconds. And, I think, I am issuing a read on that service every 3 seconds. right? import binascii import bluetooth import struct import time fr...
by mflmartin
Mon Feb 08, 2021 8:29 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 424

Re: Bluetooth simple connection & parsing of results

Thanks for the info. I see it now. Another question, I am able to connect but when I request a read on a service, I can't read the value that I get. elif event == _IRQ_GATTC_READ_DONE: # Read completed (no-op). conn_handle, value_handle, status = data print('Class: BLECentral, Function: _irq, Line 1...
by mflmartin
Fri Feb 05, 2021 12:34 am
Forum: General Discussion and Questions
Topic: bluetooth vs ubluetooth
Replies: 2
Views: 96

Re: bluetooth vs ubluetooth

Noted, Thanks!
by mflmartin
Fri Feb 05, 2021 12:33 am
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 424

Re: Bluetooth simple connection & parsing of results

Thanks for the insight, Nevertheless, I need to find devices by their name (av_data) or address, that is why I need to parse those bytes to a readable string that I can, then, compare. The reason why, is because I have many devices, each one with an specific name (eg: ZM00001, ZM00002, etc). Thus, I...
by mflmartin
Thu Feb 04, 2021 11:28 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 424

Re: Bluetooth simple connection & parsing of results

I found it myself, the simplest solution is to use the ignore flag.

Code: Select all

data.decode('utf-8', 'ignore')