Skip to content

Instantly share code, notes, and snippets.

@tjvantoll
Created July 28, 2023 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjvantoll/27fc2af25ca6a7855ce354e995fb1f23 to your computer and use it in GitHub Desktop.
Save tjvantoll/27fc2af25ca6a7855ce354e995fb1f23 to your computer and use it in GitHub Desktop.
#include <Arduino.h>
#include <Notecard.h>
#define usbSerial Serial
#define productUID "com.tvantoll.blues:project_name"
HardwareSerial stlinkSerial(PIN_VCP_RX, PIN_VCP_TX);
Notecard notecard;
void setup() {
delay(2500);
stlinkSerial.begin(115200);
notecard.begin();
notecard.setDebugOutputStream(stlinkSerial);
J *req = notecard.newRequest("hub.set");
JAddStringToObject(req, "product", productUID);
JAddStringToObject(req, "mode", "continuous");
notecard.sendRequest(req);
}
void loop() {
stlinkSerial.println("Test");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment