Skip to main content
Visitor II
April 4, 2021
Question

BL475E-IOTA library fails while sending data

  • April 4, 2021
  • 2 replies
  • 798 views

BL475E-IOTA library fails while sending data to the MQTT broker. I see the below prints on the console. I'm using the default STM32 library for AWS. Can anyone please let me know why I'm seeing these errors. Thank you.

STM32CubeExpansion_Cloud_AWS_V1.2.1/Drivers/BSP/Components/es_wifi/es_wifi.c:1973 :AT_RequestReceiveData failed

ERROR: net_sock_recv_tcp_wifi L#243 net_sock_recv(): error 1 in WIFI_ReceiveData() - socket=0 requestedLen=5 received=0

ERROR: net_sock_recv_tcp_wifi L#244 The port is likely to have been closed by the server.

ERROR: mbedtls_net_recv L#68 mbedtls_net_recv(): error -4 in net_sock_recv() - requestedLen=5

/STM32CubeExpansion_Cloud_AWS_V1.2.1/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:3875: mbedtls_ssl_fetch_input() returned -27648 (-0x6c00)

/STM32CubeExpansion_Cloud_AWS_V1.2.1/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:3729: mbedtls_ssl_read_record_layer() returned -27648 (-0x6c00)

/STM32CubeExpansion_Cloud_AWS_V1.2.1/Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:6842: mbedtls_ssl_read_record() returned -27648 (-0x6c00)

    This topic has been closed for replies.

    2 replies

    ST Employee
    May 24, 2021

    Hello

    When does this happen ?

    It looks like the remote server is closing the connection.

    Did you enter correct configuration ? (endpoint address, thing name, certificates)

    Visitor II
    January 20, 2022

    Hi @PTeja.1​  were you able to connect BL475E-IOTA to AWS ?