Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix miniMQTT compatibility and native_networking examples #37

Merged
merged 13 commits into from
Jan 27, 2022
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
run: |
source actions-ci/install.sh
- name: Pip install Sphinx, pre-commit
- name: Pip install Sphinx 4.3.2, pre-commit
run: |
pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
pip install --force-reinstall Sphinx==4.3.2 sphinx-rtd-theme pre-commit
- name: Library version
run: git describe --dirty --always --tags
- name: Pre-commit hooks
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ To use this library, you will need to create an ESP32_SPI WifiManager, connected

Native Networking
=================
To use this library, with boards that have native networking support, you need to be connected to a network. You will also need to set the current time, as this is used to generate time-based authentication keys. One way to do this is by using the `Adafruit IoT Time Service <https://io.adafruit.com/api/docs/#time>`_ via the `Requests library <https://github.com/adafruit/Adafruit_CircuitPython_Requests/>_` with the following code:
To use this library, with boards that have native networking support, you need to be connected to a network. You will also need to set the current time, as this is used to generate time-based authentication keys. One way to do this is by using the `Adafruit IoT Time Service <https://io.adafruit.com/api/docs/#time>`_ via the `Adafruit Requests library <https://github.com/adafruit/Adafruit_CircuitPython_Requests>`_ with the following code:
askpatrickw marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: python

Expand Down
9 changes: 5 additions & 4 deletions adafruit_azureiot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@
* Adafruit CircuitPython firmware for the supported boards:
https://github.com/adafruit/circuitpython/releases

**ESP32SPI Peripheral Networking**
**With ESP32SPI Peripheral Networking**
askpatrickw marked this conversation as resolved.
Show resolved Hide resolved

* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
* Adafruit's ESP32SPI Networking library: https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
* Adafruit's ESP32SPI library: https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
* Adafruit's NTP library: https://github.com/adafruit/Adafruit_CircuitPython_NTP

**Native Networking**
**With Native Networking**

* CircuitPython's Wifi Module: https://docs.circuitpython.org/en/latest/shared-bindings/wifi/index.html
* Adafruit's CircuitPython Requests Library: https://github.com/adafruit/Adafruit_CircuitPython_Requests/
* Adafruit's Requests Library: https://github.com/adafruit/Adafruit_CircuitPython_Requests/
"""

from .iot_error import IoTError
Expand Down
8 changes: 4 additions & 4 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IoT Hub ESP32SPI Networking
------------
---------------------------

Ensure your IoT Hub device works with this simple test.

Expand All @@ -26,7 +26,7 @@ Update the reported properties of the devices device twin, and receive updates t
:linenos:

IoT Central ESP32SPI Networking
------------
-------------------------------

Ensure your IoT Central device works with this simple test.

Expand All @@ -53,7 +53,7 @@ Handle connection errors.
:linenos:

IoT Hub Native Networking
------------
-------------------------

Ensure your IoT Hub device works with this simple test.

Expand All @@ -80,7 +80,7 @@ Update the reported properties of the devices device twin, and receive updates t
:linenos:

IoT Central Native Networking
------------
-----------------------------

Ensure your IoT Central device works with this simple test.

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# SPDX-License-Identifier: Unlicense

sphinx>=4.0.0
sphinx==4.3.2
1 change: 0 additions & 1 deletion examples/native_networking/azureiot_hub_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
pool = socketpool.SocketPool(wifi.radio)
# Create an IoT Hub device client and connect
device = IoTHubDevice(pool, esp, secrets["device_connection_string"])
print(dir(device))

print("Connecting to Azure IoT Hub...")

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

Adafruit-Blinka
Adafruit-CircuitPython-miniMQTT
Adafruit-CircuitPython-Requests
askpatrickw marked this conversation as resolved.
Show resolved Hide resolved
Adafruit-CircuitPython-Binascii