In my iPhone app, I have to use MQTT's C based static library to send and receive its payload, the payload must be void *, I need to send messages such as text, picture and voice This is my sending method, I warp all kind of payloads into NSData object. And the message is a struct which have the void *payload
`+ (int)send:(NSString *)mqTopic payLoad:(NSData *)mqPayLoad`
MQTTClient_message pubmsg = MQTTClient_message_initializer;
pubmsg.payloadlen = mqPayLoad;
How can I fix the type conflict between C and ojbc?
Any help should be appreciated!