Search found 104 matches
- Mon Dec 13, 2021 6:57 pm
- Forum: ESP32 boards
- Topic: ssl certificates in hex format
- Replies: 2
- Views: 3884
Re: ssl certificates in hex format
In case anyone else runs into this issue - I've put an example at https://iot49.org/projects/internet/soc ... ure-server.
- Mon Dec 13, 2021 3:18 am
- Forum: ESP32 boards
- Topic: ssl certificates in hex format
- Replies: 2
- Views: 3884
Re: ssl certificates in hex format
Adding -outform PEM to the openssl command and reading the certificates (after stripping the first and last line) in MicroPython with with open('/ssl/cert.key') as f: key = binascii.a2b_base64(f.read()) with open('/ssl/cert.crt') as f: cert = binascii.a2b_base64(f.read()) solves the problem.
- Thu Dec 09, 2021 9:45 pm
- Forum: ESP32 boards
- Topic: ssl certificates in hex format
- Replies: 2
- Views: 3884
ssl certificates in hex format
I'm trying to get the https server example working (https://github.com/micropython/micropython/blob/master/examples/network/http_server_ssl.py) and am stuck creating the certificates in the correct hex format. What I currently have: cat << EOF >cert.conf [req] distinguished_name = req_distinguished_...
- Tue Nov 23, 2021 4:31 pm
- Forum: General Discussion and Questions
- Topic: Building libs for MCUs
- Replies: 3
- Views: 2184
Re: Building libs for MCUs
Answering my own question: all I had to do was clone micropython-lib ...
(how embarassing)
(how embarassing)
- Tue Nov 23, 2021 4:02 am
- Forum: General Discussion and Questions
- Topic: Building libs for MCUs
- Replies: 3
- Views: 2184
Re: Building libs for MCUs
You can also set FROZEN_MANIFEST on the make command line if you want to just use an abritrary manifest.py anywhere on your filesystem. I'm building the ESP32 port and would like to use manifest_release.py. How can I accomplish this, preferably without modifying the board description? I tried all s...
- Tue Mar 23, 2021 1:44 am
- Forum: General Discussion and Questions
- Topic: packing a uarray
- Replies: 1
- Views: 1145
Re: packing a uarray
Answered the question myself:
Directly write the array to the UART (no pack). If both ends of the connection use the same binary encoding (endian), this works.
Directly write the array to the UART (no pack). If both ends of the connection use the same binary encoding (endian), this works.
- Tue Mar 23, 2021 12:05 am
- Forum: General Discussion and Questions
- Topic: packing a uarray
- Replies: 1
- Views: 1145
packing a uarray
I'd like to efficiently (without memory allocation) send binary data over a uart. This is what I came up with: from array import array from struct import pack a = array('i', range(4)) # this works - is there a way to get rid of the loop? # i.e. have C do the looping ... for i in a: print(pack('i', i...
- Tue Mar 16, 2021 5:33 pm
- Forum: ESP32 boards
- Topic: Trying to use the toolchain via docker
- Replies: 5
- Views: 2521
Re: A new problem
I think I've fixed the interface between my brain and docker: I can now compile ... [/code] Here's another take on using docker to compile for the esp32: Make sure you have docker installed. Then create a file with the text below somewhere on your path. Call it "idf.py" and make it executable. Go t...
- Tue Mar 09, 2021 7:46 pm
- Forum: MicroPython pyboard
- Topic: reassign i2c pins
- Replies: 2
- Views: 3208
Re: reassign i2c pins
On the 405 the pin assignments are hard-wired, so rather than selecting them when you create the I2C object, you reconfigure the approriate pins instead. ... Thanks a lot! Unlike #define MICROPY_HW_I2C1_NAME "I2C1" #define MICROPY_HW_I2C1_SCL (pin_B6) // SCL #define MICROPY_HW_I2C1_SDA (pin_B7) // ...
- Mon Mar 08, 2021 8:00 pm
- Forum: MicroPython pyboard
- Topic: reassign i2c pins
- Replies: 2
- Views: 3208
reassign i2c pins
The default F405 I2C pins are PB6, PB7. How can I use PB8, PB9 instead (they I2C1 alt functions)?
The driver gives an error that pin reassignment is not supported. Presumably it's possible with a custom firmware build?
The driver gives an error that pin reassignment is not supported. Presumably it's possible with a custom firmware build?