ESP8266 - On Keyestudio Ks0354

I've been trying to get an access point set up to use along with a station to send a simple message using 2 Ks0354 boards. I finally got an access point set up using an example in the ESP8266 libraries (WiFiAccessPoint). I know the access point was there, because I used another example (ESP8266WiFi_Scan) on the other Ks0354, and it saw the access point.

However, I have been doing further experiments while trying to figure out what handleRoot() and handleClient().

So today, when I try to compile/upload WiFiAccessPoint, I get an error message:
esptool: error: argument --port/-p: expected one argument

I have searched the ESP8266 libraries for the string "esptool" and cannot find it anywhere. I can find esptool (esptool.py) itself, but I have no idea how it's being called, or why I see the error.

Any ideas why it's being called with the wrong number of arguments, or where it's being called from??

BTW, my ESP8288 library is in users\admin...
It was installed there when I used the Library Manager to install it. I'd really rather have it in my Sketchbook\libraries folder. Is there any downside to just moving it there?

However, I have been doing further experiments while trying to figure out what handleRoot() and handleClient().

handleClient() is part of the EspWebserver library and when called checks if there have been client requests, handleRoot() is a name of a function generally used as a callback for when a client request to the root, but s you post an example ( within </> code-tags please ) an explanation is a little easier.

esptool: error: argument --port/-p: expected one argument

This is an error caused by Java, and so has nothing to do with your sketch. I recently upgraded to esp core 2.6.1 and ran into similar issues straight away (even with 2.5.2 btw) so i ended up rolling back to 2.4.2 though i've hear it has a a memory leak somewhere, but i rather have stable uploads, my laptop takes forever to compile an ESP sketch.

BTW, my ESP8288 library is in users\admin...
It was installed there when I used the Library Manager to install it. I'd really rather have it in my Sketchbook\libraries folder. Is there any downside to just moving it there?

I think you must have installed it through the Boards Manager, it is after all a 'core' not just a library. I suggest you leave it where it is. that way you can remove it using the boards manager, install a different version when you want to, and the IDE will find it where it is expecting to find it. The Sketchbook\libraries folder is meant for personal and third party libraries that are not part of the IDE installation. If you have installed third party libraries using the library manager and they end up in Arduino\libraries you could move them to Sketchbook\libraries to preserve them in case you upgrade the IDE. You should consider the ESP-specific libraries to be part of the core they came with.

handleClient() is part of the EspWebserver library and when called checks if there have been client requests, handleRoot() is a name of a function generally used as a callback for when a client request to the root, but s you post an example ( within </> code-tags please ) an explanation is a little easier.

Ahh. Got it. Though going by what you say later, I am not sure I want to continue trying to go with WiFi.

This is an error caused by Java, and so has nothing to do with your sketch. I recently upgraded to esp core 2.6.1 and ran into similar issues straight away (even with 2.5.2 btw) so i ended up rolling back to 2.4.2 though i've hear it has a a memory leak somewhere, but i rather have stable uploads, my laptop takes forever to compile an ESP sketch.

This is where I think I might stop trying this route. If I can find a definitive statement about a possible memory leak presence or absence, I may get back to it. The application is for a remote SIP and Puff interface to a Relax controller that allows a quadriplegic to control a computer, phone, and TV from his wheelchair. He currently is only able to control it from a Sip and Puff switch on his bed.

Having it stop working because of a memory leak is unacceptable.

I have actually discovered that the nRF24L01 is not, as I thought, a WiFi device. I have seen it called a Bluetooth device, but if it is, it looks like it is WAY easier to get going than the HC-05 or HC-08, so I will give it a try today.

I think you must have installed it through the Boards Manager, it is after all a 'core' not just a library. I suggest you leave it where it is. that way you can remove it using the boards manager, install a different version when you want to, and the IDE will find it where it is expecting to find it. The Sketchbook\libraries folder is meant for personal and third party libraries that are not part of the IDE installation. If you have installed third party libraries using the library manager and they end up in Arduino\libraries you could move them to Sketchbook\libraries to preserve them in case you upgrade the IDE. You should consider the ESP-specific libraries to be part of the core they came with.

Of course! I am so used to thinking of these things as libraries that I totally forgot I used the Board Manager. I think I will take your advice on moving third party libraries to Sketchbook\libraries.

Thanks for the response.

If I can find a definitive statement about a possible memory leak presence or absence, I may get back to i

i have only heard rumors of it, basically that it was fixed from version 2.5.x, what the memory leak is caused by i don't know, and i suspect it will not stop working but just reset. Though i have not experienced anything like that (or at least not with that cause as far as i know) The ESP-core is quite complex and still relatively new compared to the Arduino core.