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
Post a Comment