Skip to main content

you add string toYou can convert each value to string before sending to bluetooth in arduino code then send and read in android studio and use string.contain("string) to sprerate value. like this if (sbprint.contains("C") temptv.setText(sbprint); } ifusing (sbprint.contains("H")){ humidtytv.setText(sbprint); }string.contain("string"), like this:

if (sbprint.contains("C"){
    temptv.setText(sbprint);}
if (sbprint.contains("H")){
    humidtytv.setText(sbprint);} 

you add string to each value before sending to bluetooth in arduino code then send and read in android studio and use string.contain("string) to sprerate value. like this if (sbprint.contains("C") temptv.setText(sbprint); } if (sbprint.contains("H")){ humidtytv.setText(sbprint); }

You can convert each value to string before sending to bluetooth using string.contain("string"), like this:

if (sbprint.contains("C"){
    temptv.setText(sbprint);}
if (sbprint.contains("H")){
    humidtytv.setText(sbprint);} 
Source Link

you add string to each value before sending to bluetooth in arduino code then send and read in android studio and use string.contain("string) to sprerate value. like this if (sbprint.contains("C") temptv.setText(sbprint); } if (sbprint.contains("H")){ humidtytv.setText(sbprint); }