Notecard Lora file change

Hi, I try to use notehub to send new parameters to my Lora notecard but it doesn’t work. My code is working fine with a LTE Notecard. My Lora notecard can send some data so it syncronize correctly with notehub but doesn’t take my data.qi.

My code look like this

J *notecard_changes = notecard.requestAndResponse(notecard.newRequest("file.changes"));
  J *changes_infos = JGetObjectItem(notecard_changes,"info");
  J *data_changes = JGetObjectItem(changes_infos,"data.qi");
  int nb_changes = (int) JGetInt(data_changes,"total");
  notecard.deleteResponse(notecard_changes);
  Serial.print("Nb Changes: ");

Do we have to modifiy something like the template for sending data?

Thank you,
Eric

1 Like

To get Notehub messages back to your Notecard you do have to define a template on the notecard and you must include a port #, which is not needed on the Notehub WiFi for example. Each such template must use a different port number. I had the same issue and Blues staff advised me of this- but this info was not in the QuickStart guide for sending messages from Notehub- at least not when I reported this issue. Hope this helps.

1 Like