Hello,
I try to include p2p example code into mqtt-client, but facing some trouble.
First, in the p2p example code, SimpleLinkWlanEventHandler() API will been noted by IAR as duplicate definitions, because the same API already exist in network_if.c.
So I comment the one in the p2p example code, and then copy whatever inside it (SimpleLinkWlanEventHandler() ) to other one stands in network_if.c.
But I don't know how to solve the other duplicate definitions issue with g_p2p_dev after I move it to the file "p2p.h" which I created for standing alone for p2p function.
btw, could anyone tells me where does the SimpleLinkWlanEventHandler() been enabled?
I assume that if I know where it been enabled, then I can change the name of API to maybe P2P_SimpleLinkWlanEventHandler.
So I don't need to use the one in network_if.c.
Second, in the WlanConnect() in p2p example, it has _SlNonOsMainLoopTask(). But Mqtt-client example code based on FreeRTOS.
Could anyone enlighten me how to combine p2p (nonOS) into Mqtt_client (FreeRTOS)?
Regards,
Lex