Esp32 no data received

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:

// 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

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!

3 Likes