# Esp32 no data received

**URL:** <https://discuss.blues.com/t/esp32-no-data-received/2144>\
**Category:** Troubleshooting\
**Created:** [May 30, 2024, 3:24am UTC](https://discuss.blues.com/t/esp32-no-data-received/2144 "2024-05-30T03:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gomario2](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gomario2](https://discuss.blues.com/u/gomario2)\
**Post date:** [May 30, 2024, 3:24am UTC](https://discuss.blues.com/t/esp32-no-data-received/2144/1 "2024-05-30T03:24:03Z")

</div>

Short story is I have an Adafruit Huzzah32 ( esp32 ) and was able to add-in the notecard code and send data to notehub, was working fine but no longer. The card itself registers as seen and I see the startup messages on startup :  
\_env.dbs, \_health.qo and \_session.qo, earlier I was getting a sensors.qo message with sensor data. I don’t see any errors , here’s the code:

```auto
// Include the Arduino library for the Notecard
#include <Notecard.h>
#define productUID "<project id here>" 
Notecard notecard;

void setup() {
delay(2500);
Serial.begin(115200);

  notecard.begin();
  Serial.println("Starting up dup");

  J *req = notecard.newRequest("hub.set");
  JAddStringToObject(req, "product", productUID);
  JAddStringToObject(req, "mode", "continuous");
  notecard.sendRequest(req);
  //delay(1000);
}

void loop() {
  J *req = notecard.newRequest("note.add");
  if (req != NULL) {
    JAddStringToObject(req, "file", "sensors.qo");
    JAddBoolToObject(req, "sync", true);

    J *body = JCreateObject();
    if (body != NULL) {
      JAddNumberToObject(body, "temp", 25.6);
      JAddNumberToObject(body, "humidity", 48.2);
      JAddItemToObject(req, "body", body);
    }
    notecard.sendRequest(req);
      Serial.println("Sent request! ");
  }
  delay(15000);
}

```

No compiler or upload errors, the print statements print as well. Any ideas ???

Thanks

Mario

---

<div class="post-metadata">

**Author:** ![gomario2](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gomario2](https://discuss.blues.com/u/gomario2)\
**Post date:** [May 30, 2024, 3:59am UTC](https://discuss.blues.com/t/esp32-no-data-received/2144/2 "2024-05-30T03:59:10Z")

</div>

**SOLVED**  
I was coding between 3 different MCUs and noticed I had switched the board from ‘Adafruit Esp32 Feather’ to ‘esp32 Dev’ – while although those have the the same chip the feather is a different layout! Doh!

I also nw check “char res = notecard.sendRequest(req);” and had noticed it was a 0 , after board switch it returned a 1 and presto, my beloved data arrived!
