Looking for the basics
-
Just got my first M5 device (M5paper), which is also my first experience of ESP32. I'm really missing the entry point and a full reference.
I've got it working with the Arduino IDE, and can compile and run a few of the samples. But as soon as I try to move beyond these, I'm missing the basic map and signposts.
For example, this sample code uses
canvas.drawJpgUrl("https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/example_pic/flower.jpg");
it works, and that's fantastic. But now if I want to do something else with the WiFi just want to fetch a string from a URL, obviously there's a whole WiFi library which must support that - where do I find the documentation? Is there anywhere I can find the definition of canvas.drawJpgUrl?
Is this an M5-specific thing? Or an ESP32-generic thing? Is there a reference to the functions available?
TIA,
David.
-
-
Hi David.
Check out https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ the tutorials on this site are very good and there are loads of them. Remember your M5paper is basically an ESP32 with a in built touch screen display.
-
Thank you both Felix and @silentmonkey. I'm navigating the M5 docs, but as I've whinged elsewhere, although they give function signatures (not complete I think, e.g. I've seen examples which don't match the reference) I'm missing context.
In relation to HTTP, there seem to be a lot of different Arduino libraries - copy and pasting from random examples on the internet has got me somewhere, but is there any guidance for a newbie as to the 'good' ones to go for? For example I'm currently able to fetch data from 'http:' URL, but not 'https:' - although the
canvas.drawJpgUrlexample function uses an 'https:' URL and that works...Thanks again for responding.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login