Reference Manual

Table Of Contents
+eventwlan : p2p_devfound , calypso ,0 x98 : 0 x84 :0 xe3 :0 xf6 :0 x8c : 0 x1 ,
To setup a connection to the found P2P device a
AT+wlanconnect
command has to be
placed, including the name of the peer device using the Push Button Configuration (PBC)
for example.
AT+wlanconnect=calypso , ,P2P_PBC, , , ,
In case of the group owner, the output is as follows.
+eventwlan : p2p_devfound , calypso ,0 x98 : 0 x84 :0 xe3 :0 xf6 :0 x8c : 0 x1 ,
+eventwlan : p2p_request , calypso ,0 x98 :0 x84 :0 xe3 :0 xf6 :0 x8c :0 x1 , pbc
+eventwlan : p2p_client_added ,0 x98 :0 x84 :0 xe3 :0 xf6 :0 x8c :0 x1 , calypso ,DIRECTGJ
+eventnetapp : dhcpv4_leased ,10.123.45.2 ,86400 ,0 x98 :0 x84 :0 xe3 : 0 xf6 :0 x8c :0 x1
In case of the client, the output is as follows.
+eventwlan : p2p_devfound , calypso ,0 xc8 :0 xfd :0 x19 :0 x5 : 0 x5e :0 xef ,
+eventwlan : p2p_request , calypso ,0 xc8 :0 xfd :0 x19 : 0 x5 :0 x5e :0 xef , pbc
+eventwlan : p2p_connect , DIRECTGJ,0 xc8 :0 xfd :0 x19 :0 x5 :0 x5e :0 xef , calypso
+eventnetapp : ipv4_acquired , 10 .1 2 3. 45 . 2 ,10.123. 4 5 . 1 ,10.123.45.1
Now a socket can be created to transmit/receive data. Please refer to the chapters
10.1
and
10.2
to do so.
After data has been transmitted/received, the connection can be closed again.
AT+wlandisconnect
10.5. Running a web page on the radio module
The Calypso radio module offers a secure file system to store files in the radio module. In
combination with the HTTP(S) server function, a custom web site can be run on the module.
This chapter describes how to do so by loading a simple html file (see Code
1
) to the mod-
ule’s flash memory. Furthermore the customization of the web site access is demonstrated
in the subsequent sections.
<html>
<head>
<meta h t t p equiv=" ContentType " content=" t e x t / html ; charset=u t f 8" >
<meta name=" viewpor t " content=" width=devicewidth , i n i t i a l scale=1 ">
< t i t l e >Simple web page< / t i t l e >
< / head>
<body>
This i s a simple webpage
< / body>
< / html>
Code 1: Example html code
10.5.1. Load the web page files to the radio module
First of all the
AT+FileGetFileList
can be used to check the file system content of the radio
module.
AT+ F i l e G e t F i l e L i s t
+ f i l e g e t f i l e l i s t : /www/ help . html ,3656 ,2
+ f i l e g e t f i l e l i s t : /www/ images / icon / help . png,3656 ,2
Calypso reference manual version 1.2 © April 2019
www.we-online.com/wireless-connectivity 85