2.- App. Bluetooth. Arduino.
- App sends information via Bluetooth to the Arduino. Arduino transmits that information through the HC12.
- There is feedback from the Bluetooth module (but not from the receiving HC12).
arduino_bluetooth.ino
#include <SoftwareSerial.h>
SoftwareSerial HC12(10,11) ; // TX to pin_10. RX to pin_11 of Arduino.
SoftwareSerial BT(2,3) ; // TX to pin_2. RX to pin_3 of Arduino.
String texto;
void setup() {
HC12.begin(9600);
BT.begin(9600);
}
void loop() {
if(BT.available()) {
texto = BT.readStringUntil('\n');
BT.println(texto); // Return to app
HC12.println(texto); // HC-12 sends texto.
}
}
arduino_receiver.ino
[The same code from the previous post.]
- App Inventor.

