Develop P2P Client Firmware

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaFa_4614726
Level 1
Level 1

Hello.

I want to develop a Firmware for WICED that configures MCU as P2P Client.

I download WICED Studio and I write this simple SNIP

#include "wiced.h"

#include "p2p_structures.h"

connection_manager_context_t cm;

void application_start(void)

{

    wiced_init( );

    connection_set_settings(&cm);

    connection_launch(CONNECTION_P2P_GC);

}

I have 2 questions:

1) I'm on the right way ?

2) Compier tells me apps/demo/gil/rdg/rdg.c:50:1: error: unknown type name 'connection_manager_context_t'; did you mean 'mbedtls_cipher_context_t'?

I add #include "connection_manager.h" but compiler tells me apps/demo/gil/rdg/rdg.c:3:10: fatal error: connection_manager.h: No such file or directory

I'm stucked !

0 Likes
1 Solution

OK ...

I have to add in mk file this ...

$(NAME)_COMPONENTS := utilities/connection_manager

...

View solution in original post

0 Likes
3 Replies
MaFa_4614726
Level 1
Level 1

I solved using

#include "../libraries/utilities/connection_manager/connection_manager.h"

but now ...

C:\Users\Mauro\Documents\WICED-Studio-6.6\43xxx_Wi-Fi/apps/demo/gil/rdg/rdg.c:57: undefined reference to `connection_set_settings'

C:\Users\Mauro\Documents\WICED-Studio-6.6\43xxx_Wi-Fi/apps/demo/gil/rdg/rdg.c:58: undefined reference to `connection_launch'

0 Likes

OK ...

I have to add in mk file this ...

$(NAME)_COMPONENTS := utilities/connection_manager

...

0 Likes

MaFa_4614726

Were you able to get it up and running?

Here's a thread which may help you out further Re: WiFi-Direct group owner with WICED: how to do?

0 Likes