Skip to content

WiFiProv.ino: error: operator 'not' has no right operand #8483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
igrr opened this issue Aug 3, 2023 · 3 comments · Fixed by #8485
Closed
1 task done

WiFiProv.ino: error: operator 'not' has no right operand #8483

igrr opened this issue Aug 3, 2023 · 3 comments · Fixed by #8485
Assignees
Labels
Type: Bug 🐛 All bugs Type: Example Issue is related to specific example.

Comments

@igrr
Copy link
Member

igrr commented Aug 3, 2023

Board

ESP32-S3

Device Description

Just a compilation issue, not relevant

Hardware Configuration

Just a compilation issue, not relevant

Version

other

IDE Name

Arduino IDE 1.8.19

Operating System

not sure

Flash frequency

not sure

PSRAM enabled

no

Upload speed

not sure

Description

in https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino:

uncommenting the line #define USE_SOFT_AP as mentioned in the sketch leads to an error:

error: operator 'not' has no right operand

I guess it should be #define USE_SOFT_AP 1 or the ifdefs later in the sketch have to be changed to use ... not defined(USE_SOFT_AP) instead of not USE_SOFT_AP.

Sketch

https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino

Debug Message

sketch.ino:65:75: error: operator 'not' has no right operand
 #if CONFIG_IDF_TARGET_ESP32 && CONFIG_BLUEDROID_ENABLED && not USE_SOFT_AP
                                                                           ^
sketch.ino:76:50: error: operator 'not' has no right operand
   #if CONFIG_BLUEDROID_ENABLED && not USE_SOFT_AP
                                                  ^

Error during build: exit status 1

Other Steps to Reproduce

https://wokwi.com/projects/372038262823000065

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@igrr igrr added the Status: Awaiting triage Issue is waiting for triage label Aug 3, 2023
@SuGlider SuGlider self-assigned this Aug 3, 2023
@SuGlider
Copy link
Collaborator

SuGlider commented Aug 3, 2023

Thanks @igrr! I'll add a PR with the fix.

@SuGlider SuGlider added Type: Bug 🐛 All bugs Type: Example Issue is related to specific example. and removed Status: Awaiting triage Issue is waiting for triage labels Aug 3, 2023
@SuGlider
Copy link
Collaborator

SuGlider commented Aug 3, 2023

@igrr -
I also noticed that Wokwi doesn't define CONFIG_IDF_TARGET_ESP32, therefore it never starts the BLE Provisioning, although it still prints the BLE QR Code.
This inconsistence doesn't happen when building it with the Arduino IDE.

@SuGlider SuGlider linked a pull request Aug 3, 2023 that will close this issue
@SuGlider
Copy link
Collaborator

SuGlider commented Aug 3, 2023

I've just tested the example using the ESP32, ESP32S3 and ESP32C3 + ESP SoftAP Prov Android APP.
All those 3 SoC work fine with BLE provisioning, therefore there is no need to restrict it only to the ESP32.
I'll also commit this change.

@SuGlider SuGlider closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 All bugs Type: Example Issue is related to specific example.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants