Add verified WSS transport for legacy boards
Configure the default WSS endpoint and ISRG Root X2 trust anchor, preserve device authentication, enforce TLS and WebSocket handshake validation, and handle partial I/O and connection cleanup. Add host tests, server probes, package verification and integration documentation. Backend 443 /ws still returns HTTP 404; on-device validation remains pending.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "hal_api.h"
|
||||
#include "build_macro.h"
|
||||
#include "ql_rtc.h"
|
||||
#include "talkingq_wss.h"
|
||||
#include "ql_cell_locator.h"
|
||||
|
||||
|
||||
@@ -979,17 +980,17 @@ int save_talkingq_url(uint8_t *buff, int len)
|
||||
#endif
|
||||
int hal_os_get_talkingq_url(char *pdevice_id)
|
||||
{
|
||||
char temp_device_id[64];
|
||||
memset(temp_device_id, 0, sizeof(temp_device_id));
|
||||
hal_kv_get("talkingq_url", temp_device_id, sizeof(temp_device_id));
|
||||
char temp_device_id[TALKINGQ_URL_CAPACITY] = {0};
|
||||
int saved = hal_kv_get("talkingq_url", temp_device_id, sizeof(temp_device_id));
|
||||
temp_device_id[sizeof(temp_device_id) - 1] = 0;
|
||||
|
||||
//read_talkingq_url(temp_device_id,sizeof(temp_device_id));
|
||||
if(strlen(temp_device_id)>0){
|
||||
if(saved > 0 && strlen(temp_device_id)>0 && !talkingq_is_legacy_ws_url(temp_device_id)){
|
||||
strcpy(pdevice_id, temp_device_id);
|
||||
}else{
|
||||
//strcpy(pdevice_id,"ws://api.talkingq.com:8080");
|
||||
//strcpy(pdevice_id,"ws://175.24.73.253:80");
|
||||
strcpy(pdevice_id,"ws://101.35.224.118:8080");
|
||||
strcpy(pdevice_id, TALKINGQ_WSS_URL);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user