Search found 12 matches

by Cool Javelin
Wed Oct 18, 2023 8:41 pm
Forum: General Discussion
Topic: Philosophy: Instantiating inside vs outside loop
Replies: 3
Views: 4414

Re: Philosophy: Instantiating inside vs outside loop

Thank you MicroController, I sometimes forget about the "structured" programming practices. I really do like the structured approach, I grew up back when the Z80 or 6800 was popular, using assembly a lot, and I tend to worry about every byte of memory and unnecessary clock cycle. Of course "spaghett...
by Cool Javelin
Wed Oct 18, 2023 6:17 pm
Forum: General Discussion
Topic: Philosophy: Instantiating inside vs outside loop
Replies: 3
Views: 4414

Philosophy: Instantiating inside vs outside loop

Hello IoT experts: I see this in a lot of sample code: #include <ESP8266WiFi.h> loop { WiFiClient client; // WiFiClient inside loop if (client.connect(host, 80)) { ... } } vs... #include <ESP8266WiFi.h> WiFiClient client; // WiFiClient outside loop loop { if (client.connect(host, 80)) { ... } } Why ...
by Cool Javelin
Sun Feb 19, 2023 2:32 am
Forum: General Discussion
Topic: Assign com port (windows)
Replies: 4
Views: 2746

Re: Assign com port (windows)

I tried an experiment, I plugged one of the devices into a USB port (sans hub), and got COM15. I swapped out devices, and got the same COM port. I went into Windows device manager and assigned a different COM port number (COM16) Then I swapped them back, and got COM16. Apparently, the serial to USB ...
by Cool Javelin
Sat Feb 18, 2023 8:56 am
Forum: General Discussion
Topic: Assign com port (windows)
Replies: 4
Views: 2746

Assign com port (windows)

I have several ESP32 projects going on simultaneously, (also ESP8266's) and have 2 or 3 plugged into a powered USB hub at the same time. Windows is happy enough to assign COM numbers to the devices and all is good. However, each time I disconnect and connect the devices from the hub, Windows may ass...
by Cool Javelin
Sat Jan 14, 2023 9:33 am
Forum: General Discussion
Topic: Power off peripherals reduce power
Replies: 1
Views: 1189

Power off peripherals reduce power

Hi. Is there a tutorial to teach me how to turn off various peripherals? My ESP32 seems to get hot, in fact, I think one failed due to overheat. I'd like to completely power down the Bluetooth module, and maybe run the WiFi at a lower duty cycle. Also, if there is a way to turn off the SCI or the se...
by Cool Javelin
Sat Oct 22, 2022 6:23 pm
Forum: General Discussion
Topic: Simultaionus bidirectional TCP communication
Replies: 3
Views: 1744

Re: Simultaionus bidirectional TCP communication

Hello Craige: Thanks for taking the time to chat with me about this. While I had not thought about making an HTTP server (on the 8266 server side,) I think it might be a bit much. Rather, on the Arduino forum, someone said I can make a "WiFiClient" on both machines, then after "server.available," us...
by Cool Javelin
Wed Oct 19, 2022 6:09 pm
Forum: General Discussion
Topic: ESP32 vs ESP8266 library compatibity
Replies: 0
Views: 765

ESP32 vs ESP8266 library compatibity

Hello: Are all libraries for either the ESP32 or the ESP8266 freely interchangeable? Since the Arduino will compile the library routines into the appropriate machine code for the machine, and from what I have seen, all the code in the libraries is in C (or C++,) can I use any library with either dev...
by Cool Javelin
Tue Oct 18, 2022 6:02 am
Forum: General Discussion
Topic: Simultaionus bidirectional TCP communication
Replies: 3
Views: 1744

Simultaionus bidirectional TCP communication

Hello: I am connecting one ESP32 and a few ESP8266 boards in a WiFi network, and I need bidirectional communication between the 32 and each of the 8266's. I can find several examples on creating a client on the 32, and servers on the 8266's. I have only tried one pair so far, but it seems straight f...
by Cool Javelin
Sun Jul 24, 2022 4:44 pm
Forum: General Discussion
Topic: Email from ESP32 and SMPT
Replies: 0
Views: 792

Email from ESP32 and SMPT

A while ago, I was able to email from a number of unsecured devices, but recently Google, and Microsoft have gone to a more secure system. Specifically, I want to send an email to my phone using (i.e. 1234567890@vzwpix.com.) When I setup my Thunderbird, for example, and make an account, there is a s...
by Cool Javelin
Fri Jul 08, 2022 12:59 am
Forum: General Discussion
Topic: Code, Compile, upload via USB from Android
Replies: 1
Views: 2157

Code, Compile, upload via USB from Android

Has anyone compiled/uploaded a .bin to an ESP32 from an android? I'd like to connect my android tablet to an ESP32 via a USB cable (type C on the android side, and USB micro on ESP32 side,) compile a sketch (well, Arduino calls them sketches, but real programmers call them programs.) then upload the...