Search found 43 matches

by mflmartin
Thu Mar 04, 2021 9:29 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 6272

Re: Bluetooth simple connection & parsing of results

I guess that I have to use the write_handle that was calculated previously for the write characteristic. But for the value_handle? Where do I get that? Is there any place with extended documentation on what does what in order to find more info about this? self._ble.gattc_write(self._write_handle, se...
by mflmartin
Thu Mar 04, 2021 7:14 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 6272

Re: Bluetooth simple connection & parsing of results

The device did require pairing, actually, with SRP protocol. So I would need to send data first. What I don't understand fully is the gattc_write, in order to send data to the server. Where do I get the conn_handle and value_handle from? Thanks, ble.gattc_write(conn_handle, value_handle, data, mode=...
by mflmartin
Tue Mar 02, 2021 10:18 pm
Forum: General Discussion and Questions
Topic: ESP32 urandom.getrandbits(64) value error
Replies: 2
Views: 1406

ESP32 urandom.getrandbits(64) value error

On ESP32, if I use urandom.getrandbits(64), I get "ValueError:" without any more info. If I use urandom.getrandbits(32) or lowerf, it works.

Is this a limitation or a bug maybe?
by mflmartin
Tue Mar 02, 2021 8:46 pm
Forum: General Discussion and Questions
Topic: base64 module not found
Replies: 2
Views: 1945

Re: base64 module not found

I guess that I needed to install it with upip, and I did, after connecting the module to the wifi. But this brings me to the next question: What would be the best way to install it in a new device automatically? (Without having to buiild micropython from sources). I am guessing, maybe, checking if i...
by mflmartin
Tue Mar 02, 2021 7:30 pm
Forum: General Discussion and Questions
Topic: base64 module not found
Replies: 2
Views: 1945

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: 1065

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: 6272

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: 1711

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: 6272

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: 6272

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...