Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:

- name: Fetch submodules
run: |
git submodule update --init --depth=1
( cd vendor/micropython/ports/unix ; make submodules )
( cd vendor/micropython/ports/esp32 ; make submodules )
git submodule update --init --recursive #--depth=1
# ( cd vendor/micropython/ports/unix ; make submodules )
# ( cd vendor/micropython/ports/esp32 ; make submodules )

- name: Test
run: |
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Build
run: |
rm -rf ./vendor/micropython/mpy-cross/build # Workaround build failure
docker run -t -u "$UID:$GID" -e "HOME=/app" -v "${GITHUB_WORKSPACE}:/app" -w "/app" espressif/idf:v5.1.2 make
docker run -t -u "$UID:$GID" -e "HOME=/app" -v "${GITHUB_WORKSPACE}:/app" -w "/app" espressif/idf:v5.4 make
shell: bash

- name: Upload to Golioth (Main)
Expand Down
3 changes: 1 addition & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[submodule "vendor/micropython"]
path = vendor/micropython
url = https://github.com/Ribbit-Network/micropython
branch = pr/mbedtls
url = https://github.com/micropython/micropython
ignore = dirty
[submodule "vendor/microdot"]
path = vendor/microdot
Expand Down
7 changes: 3 additions & 4 deletions modules/ribbit/coap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
import socket
import random
import os
import ssl
import asyncio
import asyncio.core as _asyncio_core
import tls

from micropython import const


_HEADER_SIZE = const(4)
_OPTION_HEADER_SIZE = const(1)
_PAYLOAD_MARKER = const(0xFF)
Expand Down Expand Up @@ -446,8 +445,8 @@ async def connect(self):
if self._ssl is not False:
ctx = self._ssl
if ctx is True:
ctx = ssl.SSLContext(
ssl.PROTOCOL_DTLS_CLIENT
ctx = tls.TLSContext(
tls.PROTOCOL_DTLS_CLIENT
)

sock = ctx.wrap_socket(
Expand Down
6 changes: 3 additions & 3 deletions modules/ribbit/golioth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time
from micropython import const
import asyncio
import tls

import ribbit.config as _config
import ribbit.coap as _coap
Expand Down Expand Up @@ -87,9 +88,8 @@ async def _loop(self):
if enabled:
self._logger.info("Starting Golioth integration")

import ssl
ctx = ssl.SSLContext(
ssl.PROTOCOL_DTLS_CLIENT
ctx = tls.SSLContext(
tls.PROTOCOL_DTLS_CLIENT
)
ctx.set_ciphers(["TLS-PSK-WITH-AES-128-CBC-SHA256"])
ctx.set_psk(user, password)
Expand Down
2 changes: 1 addition & 1 deletion vendor/micropython
Submodule micropython updated 2336 files