How can i divide data from bluetooth to Blynk?

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.

hi guys, i’m working on a project that get data from bluetooth and send it for blynk.
and that data from bluetooth is temperature and resistance. so there are two kinds of data. (frankly 6 kinds of data with naming data)
but when it come to slave bluetooth, it is just hm10.read() …
my plan is showing the data for super chart by blynk.
but i can’t identify that data for each v0,v1… how can i do that?
I using Nodemcu and connect hm-10 for bluetooth and here my code
please help me TT

this is master code


#include <Wire.h>
#include <Adafruit_INA219.h> // You will need to download this library
#include <SoftwareSerial.h>

Adafruit_INA219 sensor219; // Declare and instance of INA219
SoftwareSerial mySerial(7, 8); // RX, TX  
// Connect HM10      Arduino Uno
//     TXD          Pin 7
//     RXD          Pin 8

const int temperaturePin = 0;

void setup() 
{   
  //pinMode(LED1,OUTPUT);
  sensor219.begin();
  Serial.begin(9600);   
  Serial.println("Emartee.Com");   
  Serial.println("Voltage: ");   
  Serial.print("V");
  while (!Serial)
  Serial.println("Hello World!");
  mySerial.begin(9600);
}

void loop() {  
  float busVoltage = 0;
  float current = 0; // Measure in milli amps
  float power = 0;
  int reading = analogRead(temperaturePin);
  int temp=5.0*reading*100/1024.0;
  busVoltage = sensor219.getBusVoltage_V();
  current = sensor219.getCurrent_mA();
  power = busVoltage * (current/1000); // Calculate the Power
  Serial.print("Bus Voltage:   "); 
  Serial.print(busVoltage); 
  Serial.println(" V");    
  Serial.print("Current:       "); 
  Serial.print(current); 
  Serial.println(" mA");
  Serial.print("Power:         "); 
  Serial.print(power); 
  Serial.println(" W");
  Serial.print(temp);
  float resistance;
  char c = '\n';
  resistance = busVoltage/current;
  mySerial.print("Voltage:   ");
  mySerial.print(busVoltage);
  mySerial.print(c);
  mySerial.print("Current:   ");
  mySerial.print(current);
  mySerial.print(c);
  mySerial.print("Resistance:   ");
  mySerial.print(resistance);
  mySerial.print(c);
  mySerial.print("Temperature");
  mySerial.print(temp);
  mySerial.print(c);
  delay(1000);
}

and this is slave coding

#include <SoftwareSerial.h>
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
SoftwareSerial hm10(D5,D6); //RX, TX 연결
BlynkTimer timer;
char auth[] = "99bfff425eba40969d41a124fa4d8333";
byte data;


char ssid[] = "KHU Wi-Fi Guest";
char pass[] = "vision2020";

void myTimerEvent()
{Blynk.virtualWrite(V0,data);
 } 
 
void setup() {
 
  Serial.begin(9600);
  hm10.begin(9600);
  
  Blynk.begin(auth, ssid, pass);
  timer.setInterval(1000L,myTimerEvent);
}


void loop() {
  Blynk.run();
  timer.run();
  
  if(hm10.available()){
    byte data=hm10.read();
    Serial.write(data);

  }
  if(Serial.available()){

    byte data=Serial.read();
    hm10.write(data);
  }
   
}

so i want show the data(temperature,current,voltage,resistance) for superchar by blynk
and i don’t know how i divide data from bluetooth to temperature,current,voltage,resistance

Your issue is not really Blynk specific.

First you need to find a way of transferring serial data between devices… Serial Print is one way… but rather crude for proper data transfer.

I would recommend a library like EasyTransfer to send your data over your BT/Serial link.

Then as far as using the receiving device to further pass on the incoming data to the App… treat the resulting incoming data like any other sensor…