Running http/mqtt server #2175
-
Hi, I mixed http and mqtt server examples. I am using 1 event manager and 2 event handler functions (1 for protocol). When I comment 1 of these listen functions the other protocol is working without any problems. When I use both protocols only MQTT is working. I see ERR_SOCKET_NOT_CONNECTED error in my browser after http connection. Can you guide me what the problem can be? I am working on STM32H7 Nucleo board with freertos. This is how my functions look like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
https://mongoose.ws/documentation/tutorials/http-server/
Unfortunately "your browser" and its messages are out of reach for me. What do you see in:
Whose port and configuration ? Cube ? PS: to see Mongoose log, even though the tutorial above will link you to it: https://mongoose.ws/documentation/tutorials/stm32/nucleo-f746zg-cube/#step-3-redirect-printf-output-to-usart3 (check the correct USART connected to the ST-Link in your board) |
Beta Was this translation helpful? Give feedback.
https://mongoose.ws/documentation/tutorials/http-server/
https://mongoose.ws/documentation/tutorials/mqtt-server/
Unfortunately "your browser" and its messages are out of reach for me. What do you see in:
?
Whose port and configuration ? Cube ?
What is your stack size for this task ?
What TCP/IP stack are you using ? Whose port and configuration ? Cube's lwIP ? CMSIS_RTOS v1 ? Number of connections allowed ? If you answered yes to all then add MEMP_NUM_NETCONN=10 or more to your preprocessor symbols
https://mongoose.ws/documentation/tut…