Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

33 -2 o o o o 12 1 -3 33 -2 2 1 -3 2 1 -1

Answered: 1 week ago