Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with Blues Wireless Notecard #801

Open
drewcssv opened this issue Jun 27, 2024 · 0 comments
Open

Use with Blues Wireless Notecard #801

drewcssv opened this issue Jun 27, 2024 · 0 comments

Comments

@drewcssv
Copy link

drewcssv commented Jun 27, 2024

[x ] Request to support a new module

[ ] Bug or problem compiling the library
[] Bug or issue with library functionality (ie, sending data over TCP/IP)
[ ] Question or request for help

Modem: Blues Wireless Notecard with BG91/95 modem
Processor: ESP32 with Arduino IDE
TinyGSM Library, latest

Hello, trying to understand if I can use my Blues Wireless Notecard (which uses the BG91/95 modem) with the tinyGSM library. The basic code flow is this:

// Blues Notecard info
#define serialDebug Serial

#define productUID "org.sustainablesv.dclark:#########" 
#define version "V0.1"

Notecard notecard; // Blue Wireless Notecard instance

// Your GPRS credentials, if any
const char apn[]  = "";
const char user[] = "";
const char pass[] = "";

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
const char auth[] = BLYNK_AUTH_TOKEN;

TinyGsm modem(SerialAT);

void setup() {
  // Set console baud rate
  SerialMon.begin(115200);
  delay(10);

  notecard.begin();
  notecard.setDebugOutputStream(serialDebug);
  J *req = notecard.newRequest("hub.set");
  JAddStringToObject(req, "product", productUID);
  JAddStringToObject(req, "mode", "continuous");
  notecard.sendRequest(req);

  // Set GSM module baud rate
  SerialAT.begin(115200);
  delay(6000);

  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  SerialMon.println("Initializing modem...");
  modem.restart();

  String modemInfo = modem.getModemInfo();
  SerialMon.print("Modem Info: ");
  SerialMon.println(modemInfo);

  // Unlock your SIM card with a PIN
  // modem.simUnlock("1234");

 Blynk.begin(auth, modem, apn, user, pass);

}

Will this work with tinyGSM and Blynk?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant