Hi All,
i am using the strcmp() function to compare the characters received from from phone through Bluetooth (HC-05) to do particular operation. But , i using "if(strcmp(data, "f") ==0) " the results is not equal to zero and return integer -42 in serial monitor. Note that data is the character receive from phone and "f" is the characters to compare . so i compensate the result to make it zero so that it can perform operation when receiving character"f". Anybody can tell me why (strcmp(data, "f") is not equal to zero when i send "f" characters from the phone? and another method can be done? fell free to comments and share your knowledge ,i was appreciate it.Thanks
