Skip to content

Add user-defined certificate and private key handlers to ESP32SPI #77

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

Merged
merged 6 commits into from
Oct 8, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Oct 8, 2019

Adding set_certificate and set_private_key to ESP32SPI to reflect adafruit/nina-fw#11

Simpletest (note, version is 1.4.0 reflecting nina-fw pr #11):

code.py output:
ESP32 SPI webclient test
ESP32 found and in idle mode
Firmware vers. bytearray(b'1.4.0\x00')
MAC addr: ['0x28', '0x7f', '0x11', '0x12', '0xcf', '0xa4']
Connected to NETWORK 	RSSI: -44
My IP address is 
IP lookup adafruit.com: 104.20.38.240
Ping google.com: 10 ms
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
----------------------------------------
This is a test of Adafruit WiFi!
If you can read this, its working :)

----------------------------------------

Fetching json from http://api.coindesk.com/v1/bpi/currentprice/USD.json
----------------------------------------
{'time': {'updated': 'Oct 8, 2019 20:49:00 UTC', 'updatedISO': '2019-10-08T20:49:00+00:00', 'updateduk': 'Oct 8, 2019 at 21:49 BST'}, 'disclaimer': 'This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org', 'bpi': {'USD': {'code': 'USD', 'description': 'United States Dollar', 'rate_float': 8144.39, 'rate': '8,144.3933'}}}
----------------------------------------
Done!

Testing esp32spi_aio_post (uses WiFiManager)

code.py output:
ESP32 SPI webclient test
Posting data...{'lat': None, 'feed_id': 997503, 'ele': None, 'expiration': '2019-12-07T20:48:22Z', 'id': '0E931MSGWB4BV8GF0D5BCXV65P', 'lon': None, 'value': '0', 'feed_key': 'test', 'location': None, 'created_at': '2019-10-08T20:48:22Z', 'created_epoch': 1570567702}
OK

@brentru brentru requested a review from a team October 8, 2019 21:04
@ladyada
Copy link
Member

ladyada commented Oct 8, 2019

looks good can merge on pass

@brentru brentru merged commit 379eed6 into adafruit:master Oct 8, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 9, 2019
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 3.0.0 from 2.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#77 from brentru/add-certificate-handlers

Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP3xxx to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP3xxx#16 from magnusvmt/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO to 2.1.0 from 2.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_AdafruitIO#21 from brentru/close-responses
  > Merge pull request adafruit/Adafruit_CircuitPython_AdafruitIO#27 from brentru/callbacks-for-sub-unsub

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 1.1.5 from 1.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#9 from brentru/cert-example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants