Comments: SparkFun NanoBeacon Board - IN100 Hookup Guide

Pages

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • awootton / about a year ago / 1

    I follow the directions and the NanoBeacon is working. I can see it in the iPhone InPlay app. The ESP32 sketch is working and I can see the advertisements there. Then I try to modify the sketch to run non-blocking. Like this:

    bool scanning = false;
    
    void MyBLEScanResults(BLEScanResults results) {
        // Serial.println("MyBLEScanResults done");
        // Scan finished, delete results to release memory
        pBLEScan->clearResults();
        scanning = false;
    }
    
    void loop() {
    
        if (!scanning) {
            // the non-blocking version
            bool ok = pBLEScan->start((uint32_t)scanTime, &MyBLEScanResults, true);
            scanning = true;
        }
    etc
    

    And it doesn't work but that's not the complaint! Then I download the original sketch (the one in the article) and now IT doesn't work.

    Then I try a fresh ESP32-WROOM-DA from my stash and it works with the article code. The one from before seems broken.

    Is there a way to reset the esp32 or something?

    • El Duderino / about a year ago / 1

      Hey there awootton,

      That is a bizarre issue there. Unfortunately, these comments aren't the best place to get technical assistance and I'd recommend posting this question in the Bluetooth section of our forums for troubleshooting help.

      That said, you might want to try uploading a different sketch like this to see if the misbehaving ESP32 works there. That should help you identify if it is indeed a problem with the ESP32 module or if it's something with the NanoBeacon/ESP32 pairing.


If you've found an issue with this tutorial content, please send us your feedback!