Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Is this C programming for Arduino? I have this in my Bluetooth module code in Arduino but don't know what the purpose of it and
Is this C programming for Arduino? I have this in my Bluetooth module code in Arduino but don't know what the purpose of it and what it means.
int i=0;
int m=0; delay(500);
if (Serial1.available() > 0) {
while (Serial1.available() > 0) {
inSerial[i]=Serial1.read();
i++; }
inSerial[i]='\0';
Check_Protocol(inSerial); }}
if(!strcmp(inStr,"read")){
(Here I have my Serial1.println lines)
for(m=0;m<11;m++){
inStr[m]=0;}
i=0;}
else{
for(m=0;m<11;m++){
inStr[m]=0; } i=0;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started