Making a hub

Hi guys, this is one of the bluetooth starting projects, in which I’m using the program and just taking an arduino uno with a potentiometer and sending it to the according bluetooth app, and I did my research on what and how to do that. My issue is i’m trying to make one app for a hub, and another to receive notifications, or at least someway to. The end goal is trying to basically get sensor values from ports on the arduino, and they would be sent to a home hub, and the home hub, or just a device with blynk on it, has the first app, and another device has the receiving notifications app, aka your device, in which if you want specific data, and/or to be notified if the data reaches certain values, then it would do such. What I have right now is just one app to red all of that, where instead i’d want 2, 2 as i will need to use the hub in a future project. Also, I just would like to know if something such is feasible or doable and any tips on establishing something like that. Thank you all so much in advance!

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#define BLYNC_DEBUG
// #define BLYNK_USE_DIRECT_CONNECT

#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
    
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "your auth token would go here,out for obvious reasons";
int loop_counter = 0;

SoftwareSerial SerialBLE(10, 11); // RX, TX

BlynkTimer timer;

// This function sends Arduino's up time every second to Virtual Pin (5).

void myTimerEvent()
{
  Blynk.virtualWrite(V5, int(analogRead(A0)));
  //Serial.println(int(analogRead(A0)));
}

void setup()
{
  // Debug console
  Serial.begin(9600);

  SerialBLE.begin(9600);
  Blynk.begin(SerialBLE, auth);

  Serial.println("Waiting for connections...");

  // Setup a function to be called every second
  timer.setInterval(10000L, myTimerEvent);
}

void loop()
{
  Blynk.run();
  timer.run(); // Initiates BlynkTimer
  if (analogRead(A0)>1000){
    if (loop_counter==0) {
    Blynk.notify("Sensor high ALERT: Value over 1000...");
     loop_counter = 10  ;
    } 
    else
    {
     loop_counter--;
    }
  }
  else
  {
   loop_counter=0; 
  }
}

I’m not sure that it is possible with just Blynk - not using BLE anyway.
For multiple Blynk devices to communicate together you need to use Bridge, which doesn’t work with BLE.
I don’t think notifications do either.

Is there a reason why you need to use BLE rather than Wi-Fi?

If you have to use BLE then maybe using MQTT communication between the nodes and the hub, then using your hub as a Blynk gateway (maybe with Node-Red and the Blynk plug-in) is an option.

Pete.

Ok, thank you for letting me know!
I’ve figured out a workaround so I won’t have to use the bridge with bluetooth.:grinning: