arduino - Converting Data Types from integer to char* -




i working on school project includes list of i2c ids match particular sensors using.

//do, ph, electric conductivity, temperature int channel_ids[] = {97, 99, 100, 102};   

the problem trying connect particular api uses different numbers represent channels , character pointer.

// 70 id temperature api trying connect to. char *gtapi_channelid="70"    

i want create if statement looks like:

if (gtapi_channelid == "70") {    channel_ids="102"; } 

but not know how when channel_ids integer , gtapi_channelid character pointer.

thanks





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -