I am trying to interface boltiot with Arduino with UART protocol. And I programmed boltiot in python using API
The python code:
from boltiot import Bolt
api_key = "XXXXXXXXX"
device_id = "XXXXXXX"
mybolt = Bolt(api_key,device_id)
response = mybolt.serialBegin(9600)
response1 = mybolt.serialRead('RX')
print(response1)
print(response)
Arduino Code
#include<SoftwareSerial.h>
SoftwareSerial mySerial(0,1); //Rx and Tx
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
mySerial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(mySerial.available() > 0){
mySerial.print("Amrapali");
mySerial.println(" Santosh");
}
}
please go through the screen shot what it is showing