2020-07-01 04:48 AM
Hello,
I am struggling to send data via a softAP over WiFi. Setting up the softAP and connecting to it from another device works well. Now, I would need to bind the newly created socket to the desired port and that's where it fails for me. I don't know if I am approaching the problem quite correctly. In my understanding, I would need to then listen on that port for a connection from another device and then either send or receive data through it. Thank you for your help. Source file is attached.
Sincerely,
Barna Becsek
2020-08-25 05:29 AM
Hello
Could you precise which STM32 / board you are using ? is it B-L475E-IOT01 with Inventek WiFi module ?
what function fails exactly ?
do you have a log ?
if you are using B-L475E-IOT01 it would be nice to have a trace of the AT commands sent to the Inventek WiFi module (and the answers).
it's in Drivers\BSPv2\Components\es_wifi\es_wifi.c, add #define ES_WIFI_DEBUG_MODE.
the AT command traces are printed with ES_WIFI_DEBUGCMD macro in AT_ExecuteCommand()
Guillaume
2020-10-04 01:03 AM
2020-10-04 11:22 PM
Dear @Cvega.1 ,
thank you for your help. As far as I understood thought you are connecting to an existing wifi network. I would really like to create my own software access point and have others connect to it.
2020-10-04 11:30 PM
Dear @Guillaume K ,
I was using the STEVAL-WINKT1 with the ISM43362 Inventek WiFi module.
What does not work is binding a TCP socket to a port for communication. I was able to have devices join the network, but in order to exchange data, I would need to have an open socket which is bound to a certain port and listen on that port for incoming communication.
Additionally, there is this known (unresolved?) bug with the mentioned WiFi module, which unfortunately I only saw after purchasing it
I have in the meantime moved to another manufacturer, as was suggested to me by someone from ST. There, I was in fact able to make it work.
2020-10-06 08:20 PM
To which module did you switch friend, you tried this example on your board, did it serve 100?
https://os.mbed.com/teams/ST/code/DISCO_L475VG_IOT01-wifi_http_server/file/a544e9eba8fb/main.cpp/
I implemented the example mentioned for another stm32 board but I just turned off the led and it turned on twice and then I no longer have access to the web server with the ip the page fell
I want to know if for the DISCO_L475VG_IO 1A board it works or fails the same?
Should I update the firmware?