i am receiving NSData by following method
- (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag
server send data in follwing format
04 01 00
as hexa values. so now need to convert this data into char array so that i can access every pair separately
please help
Best Answer
You can go like this if you'd like to compare byte by byte:
hope that does work for you.