fairly new iPhone developer here. Building an app to send RS232 commands to a device expecting them over a TCP/IP socket connection. I\'ve got the comms part down, and can s
Another way to do it.
-(NSData *) dataFromHexString:(NSString *) hexstr { NSMutableData *data = [[NSMutableData alloc] init]; NSString *inputStr = [hexstr uppercaseString]; NSString *hexChars = @"0123456789ABCDEF"; Byte b1,b2; b1 = 255; b2 = 255; for (int i=0; i