https://blog.jgc.org/2023/03/barebones-project-showing-how-to-get.html John Graham-Cumming's blog 2023-03-25 Barebones project showing how to get an Inkplate 10 to talk to WiFi and the Internet over HTTPS using the Arduino IDE If you're working with the Inkplate 10 (or similar model) you might commonly want to do something like: connect to WiFi, hit some API over HTTPS, and display something. If you're doing this with the Arduino IDE then here's an example project that will demonstrate WiFi, HTTPS and deep sleep. Hopefully, this will save you time getting set up as the HTTPS part can be complicated. If you're not familiar with the Inkplate it's a lovely project the uses recycled Kindle screens and adds an ESP32, lithium battery charger, RTC backup battery, touchpads, an SD card slot, and a bunch of GPIO pins. The Inkplate 10 that I'm using has a 9.7 inch, 1,200x825 display with 3-bit grayscale. In deep sleep it consumes just 22 microamps making it very suitable to run on a battery. [inkplate-2] My barebones project connects to the WiFi network of your choice, hits a public API that returns the IP address you are using and displays it on screen. It then goes into deep sleep for 30 seconds. [inkplate-1] The only complicated part is that the HTTPS/TLS functionality does not have a built in list of root CA certificates. So you either have to provide that (which takes up a lot of memory) or grab the CA certificate of the specific site you are connecting to. In this example, I used openssl s_client to get the certificate for the API I am hitting. You simply grab the last certificate that is output by the openssl s_client command and include it in the code. Of course, embedding the specific certificate a site uses in the binary is brittle because your project will break if the site changes CA certificate, but it does work and it uses little memory. at March 25, 2023 Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest Labels: hardware No comments: Post a Comment Older Post Home Subscribe to: Post Comments (Atom) Labels * pseudo-randomness * babbage * hardware * anti-spam * gnu make * security * codes and ciphers * the geek atlas * retro * mathematics * behind the screens * minitel * privacy * radio Popular Posts * [thinkpad1] Repairing a tiny ribbon cable inside a 28 year old IBM ThinkPad 701CS I'm in the middle of turning two badly treated IBM ThinkPad 701CS machines (the ones with the lovely unfolding keyboard) into a single,... * [Picture] Your last name contains invalid characters My last name is "Graham-Cumming". But here's a typical form response when I enter it: Does the web site have any idea how rud... * [Screen] Guest WiFi using a QR code On my home network I have guest WiFi configured and when guests come round they need to know the password. Happily there's a way to make... * [inkplate-2] Barebones project showing how to get an Inkplate 10 to talk to WiFi and the Internet over HTTPS using the Arduino IDE If you're working with the Inkplate 10 (or similar model) you might commonly want to do something like: connect to WiFi, hit some API o... * [casio1] Pimping my Casio with Oddly Specific Objects' alternate motherboard and firmware Some time ago I bought a replacement motherboard for my classic Casio F-91W from Crowd Supply. The project keeps the original Casio LCD but... * GNU Make Standard Library project moved to GitHub For 17 years I maintained a project called the "GNU Make Standard Library" on SourceForge. The project continues to be popular but... * [wwvb-1] WAVE OK! The WWVB time signal sets my clock in Portugal for the second time Back in 2021 I wrote about how my ancient (I think it's over 20 years old now) Sharper Image clock had set itself from the WWVB signal i... * [p50-1] Primality testing on the Commodore P50 programmable calculator with one register and 23 steps Partly because of when I started writing code (the 1970s), and partly because of money, a lot of my early coding was in very constrained env... * Alan Turing deserves an apology from the British Government When I started writing The Geek Atlas there was one name that was getting in the book no matter what: Alan Turing . Alan Turing matters on ... * Making an old USB printer support Apple AirPrint using a Raspberry Pi There are longer tutorials on how to connect a USB printer to a Raspberry Pi and make it accessible via AirPrint but here's the minimal ... Blog Archive * V 2023 (3) + V March (3) o Barebones project showing how to get an Inkplate 1... o WAVE OK! The WWVB time signal sets my clock in Por... o Repairing a tiny ribbon cable inside a 28 year old... * > 2022 (24) + > December (2) + > November (3) + > October (8) + > September (1) + > July (2) + > June (2) + > April (2) + > March (4) * > 2021 (6) + > November (1) + > July (1) + > May (2) + > April (1) + > January (1) * > 2020 (2) + > June (2) * > 2018 (2) + > December (2) * > 2017 (4) + > May (1) + > April (3) * > 2016 (11) + > November (1) + > September (1) + > July (2) + > June (1) + > May (3) + > April (1) + > March (2) * > 2015 (11) + > November (1) + > July (2) + > May (1) + > April (5) + > March (1) + > January (1) * > 2014 (4) + > November (2) + > July (1) + > June (1) * > 2013 (39) + > September (4) + > August (1) + > July (4) + > June (2) + > May (5) + > April (12) + > March (3) + > February (2) + > January (6) * > 2012 (77) + > December (3) + > November (6) + > October (6) + > September (7) + > August (6) + > July (6) + > June (8) + > May (4) + > April (9) + > March (7) + > February (9) + > January (6) * > 2011 (79) + > December (5) + > November (7) + > October (2) + > September (5) + > August (2) + > July (8) + > June (10) + > May (6) + > April (9) + > March (6) + > February (12) + > January (7) * > 2010 (95) + > December (13) + > November (9) + > October (16) + > September (19) + > August (2) + > July (9) + > June (12) + > May (1) + > April (1) + > March (4) + > February (2) + > January (7) * > 2009 (31) + > December (1) + > November (8) + > October (3) + > September (6) + > August (9) + > June (1) + > May (1) + > January (2) * > 2008 (19) + > December (2) + > September (1) + > June (3) + > May (3) + > March (2) + > February (6) + > January (2) * > 2007 (33) + > December (1) + > November (3) + > October (5) + > August (2) + > July (2) + > June (4) + > May (3) + > April (1) + > March (6) + > February (4) + > January (2) * > 2006 (25) + > December (2) + > November (2) + > October (3) + > September (5) + > July (1) + > June (1) + > April (6) + > February (1) + > January (4) * > 2005 (3) + > December (1) + > November (2) Copyright (c) 1999-2022 John Graham-Cumming. Awesome Inc. theme. Powered by Blogger.