Open rseiti opened 4 years ago
Hi,
I needed to modify wifi_service.c file to use custom configuration correctly. The modification was remove awsEndpoint[AWS_ENDPOINT_LEN-1] form the vefirification.
status = spi_flash_read(awsEndpoint, AWS_ENDPOINT_FLASH_OFFSET, AWS_ENDPOINT_LEN); if(status != M2M_SUCCESS || awsEndpoint[0] == 0xFF ) //Modification - X45079 { sprintf(awsEndpoint, "%s", CFG_MQTT_HOSTURL); debug_printIoTAppMsg("Custom endpoint not present, using the default endpoint which the hardware was pre-provisioned for : %s", awsEndpoint); } else ...
Line 181
Hi,
I needed to modify wifi_service.c file to use custom configuration correctly. The modification was remove awsEndpoint[AWS_ENDPOINT_LEN-1] form the vefirification.
status = spi_flash_read(awsEndpoint, AWS_ENDPOINT_FLASH_OFFSET, AWS_ENDPOINT_LEN); if(status != M2M_SUCCESS || awsEndpoint[0] == 0xFF ) //Modification - X45079 { sprintf(awsEndpoint, "%s", CFG_MQTT_HOSTURL); debug_printIoTAppMsg("Custom endpoint not present, using the default endpoint which the hardware was pre-provisioned for : %s", awsEndpoint); } else ...
Line 181
Please check the develop branch where the "readAWSEndpointFromWinc" API has been refactored. For ref: https://github.com/microchip-pic-avr-solutions/avr-iot-aws-sensor-node-mplab/blob/develop/AVRIoT.X/mcc_generated_files/cloud/wifi_service.c
Hi,
I needed to modify wifi_service.c file to use custom configuration correctly. The modification was remove awsEndpoint[AWS_ENDPOINT_LEN-1] form the vefirification.
status = spi_flash_read(awsEndpoint, AWS_ENDPOINT_FLASH_OFFSET, AWS_ENDPOINT_LEN);
if(status != M2M_SUCCESS || awsEndpoint[0] == 0xFF ) //Modification - X45079 { sprintf(awsEndpoint, "%s", CFG_MQTT_HOSTURL); debug_printIoTAppMsg("Custom endpoint not present, using the default endpoint which the hardware was pre-provisioned for : %s", awsEndpoint); } else ...
Line 181