Thursday, 23 April 2020

Connectivity

No idea who AZ Delivery are
Okay, so I've been tinkering around with connectivity today (and tweaked odd bits, the main thing is adding RANDOMISE). Been busy the last couple of days (annual follow up test in hospital).

So there are two basic issues. Getting stuff in and getting stuff out. Out is system specific ; ESP32 stores files in SPIFFS, in unused Flash memory. So I need a way of getting that out. I think I'll just dump the lot to the serial port as a debug option for the time being.

Not that I'm actually doing any real development on the actual machine, it's all done cross platform.

The other thing is downloading stuff. I want to do this over Wifi, I mean the ESP32 (pictures) has Wifi so why not (the problem with doing it the other way is I don't really want to use Server. There's a thing with FABGL where it really doesn't get on with SPIFFS. It used to randomly bork ; it's something to do with the interrupts, you have to turn them off to access SPIFFS)

So having waded through mountains of C of varying incomprehensibility, I've now got it downloading an arbitrary file. So next thing is to patch it into the ESP32 version. The emulator version is easy (for now), there'll just be two directories, one is the web directory, the other represents local storage. If I ever get around to doing a Pi version (I know it works) I'll have to figure that out.

No comments:

Post a Comment

Breaking change

We all make mistakes. One early mistake I made was copying (partly) the old thing in Microsoft BASIC where you didn't have to declare ...