@russ-terry I tried it as well for an 8266 and it can't find the ESP-NOW library either.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.
@yurkshirelad That's what I thought too, but when I used windows help that's what it said. I know my memory is bad, but I am pretty sure I must have done something like that during my almost 40 yrs of using windows.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.
I can get two instances of the IDE open and can compile and upload both programs. I just cannot get both serial screens open at the same time. Both com ports are shown.
I got the 8266 board installed, but must have done something wrong somewhere along the process. The ESP-NOW library is missing. Enough for today. I will bang my head against that wall tomorrow or so....
This is a bit of a pain... you have to make sure that you actually open 2 instances for it to work properly (not 2 windows of the same instance). If you cannot get it to work in the end, you can always download the latest PRO version of the Arduino IDE, as I have read that it solves this annoying issue.
Alternatively, you could set up Arduino on a virtual machine, clone it, and then launch both machines, which will not only allow you to use the host serial ports, but pipes and even virtual ports that you may have downloaded yourself.
@frogandtoad What is the correct way to open a second instance, it's been a few years since I used windows enough to know. Someone said shift-click but that doesn't sound right to me.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.
Shift click does work but not every application supports this. Right click on the application's icon in the taskbar at the bottom of the screen and click the application's name in the menu. I've done this with the Arduino IDE many times.
https://www.howtogeek.com/717118/how-to-open-multiple-windows-or-instances-of-an-app-on-windows-10/
@frogandtoad What is the correct way to open a second instance, it's been a few years since I used windows enough to know. Someone said shift-click but that doesn't sound right to me.
At the end of the day... you have to run the executable directly, to be able to successfully run 2 instances of the application, not 2 instances of the window. For example, if I have my Arduino IDE open, and then I use the Arduino menu to open a different sketch, indeed a new window will open, but that is just another instance of a window, but the same instance of the application, even though it looks like a totally separate instance of the IDE.
I for example have a shortcut to my Arduino IDE executable on my desktop, if I double click it again, it will open a new instance of the Arduino IDE, and not just a new window instance. I can then easily change ports in one sketch window without the other sketch changing.
Opening sketch from the file menu will always cause the com port to change from either window.
Moral of the story... make sure you actually launch the executable a second time, by targeting it directly.
It may not be necessary to open two instances. Take a look at this post about an IDE I've been using with good success.
It may not be necessary to open two instances. Take a look at this post about an IDE I've been using with good success.
I assumed that were were discussing the free Arduino IDE, but indeed, there are IDE's that are capable of handling multiple instances for you if you're willing to look elsewhere, and potentially pay for it.
OK, now I am really confused. I cannot compile any of the esp-now examples. It fails with error
E:\Arduino\Sketches\esp32-mac-address\esp32-mac-address.ino: In function 'void setup()':
esp32-mac-address:19:8: error: 'class WiFiClass' has no member named 'mode'
WiFi.mode(WIFI_MODE_STA);
^
It worked once, but is now not happy with the wifi.h library. There has to be a simple fix. What is it?
@russ-terry Check your compile messages and look for 2.0.2 or 1.0.6. If you see 2.0.2 in any of the dir paths then I can tell you that library is bad. Revert to 1.0.6 and it will work. There was a second recent error but at the moment I don't recall. As a result of wasting days, I am no longer updating libraries or boards. I had to completely remove everything and start over. There is a github issue report but it's complicated.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.
I entered an edit to the above, and when I posted it it all disappeared.
I can find no reference to either mentioned version no in the error messages, or elsewhere. I can find no mention of a mode function in the wifi library I have in sketches/libraries/wifi. When I compile the esp32-mac-address sketch, I get the following error messages.
E:\Arduino\Sketches\esp32-mac-address\esp32-mac-address.ino: In function 'void setup()':
esp32-mac-address:19:8: error: 'class WiFiClass' has no member named 'mode'
WiFi.mode(WIFI_MODE_STA);
^
esp32-mac-address:19:13: error: 'WIFI_MODE_STA' was not declared in this scope
WiFi.mode(WIFI_MODE_STA);
^
esp32-mac-address:23:34: error: no matching function for call to 'WiFiClass::macAddress()'
Serial.println(WiFi.macAddress());
^
In file included from E:\Arduino\Sketches\esp32-mac-address\esp32-mac-address.ino:11:0:
E:\Arduino\Sketches\libraries\WiFi\src/WiFi.h:137:14: note: candidate: uint8_t* WiFiClass::macAddress(uint8_t*)
uint8_t* macAddress(uint8_t* mac);
^
E:\Arduino\Sketches\libraries\WiFi\src/WiFi.h:137:14: note: candidate expects 1 argument, 0 provided
At global scope:
cc1plus.exe: warning: unrecognized command line option '-Wno-frame-address'
exit status 1
'class WiFiClass' has no member named 'mode'
Where do I get the wifi library for this sketch?
@russ-terry Are you using Bill's sketch? If so then I can try it and see what happens but this sounds very familiar.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.
@russ-terry I just tried it, no problems. Do you have maximum error checkin on as in the picture.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.
@russ-terry What board do you have selected. You don't get the WiFi library, it's part of the board library. The attached picture tells yhou a lot of tings. Notice the 1.0.6 you said you couldn't find, that makes me suspect you don't have your compiler settings set up for maximum information as I just posted. Also the picture shows youi the compiler knows there are multiple WiFi.h files and picks the one that comes with the ESP32 board. DO NOT attempt as some have done to 'play' with these dirs and files, you will get it wrong and make lots of trouble for yourself. The arduino built in procedures work. I still think you will see 2.0.2 instead of 1.0.6.
First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.