fix: recover interrupted conversations on boot
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#define PLATFORM_API_ORIGIN "https://121.41.46.238"
|
||||
#define PLATFORM_RESPONSE_MAX (32 * 1024)
|
||||
#define PLATFORM_FIRMWARE_VERSION "1.1.0-echoear-s2s-memory.1"
|
||||
#define PLATFORM_FIRMWARE_VERSION "1.1.0-echoear-s2s-memory.2"
|
||||
#define PLATFORM_HARDWARE_AGENT_SDK_VERSION "2.0.0"
|
||||
|
||||
static const char *TAG = "platform_client";
|
||||
@@ -113,6 +113,11 @@ static esp_err_t recover_pending_session(void)
|
||||
return err;
|
||||
}
|
||||
|
||||
esp_err_t platform_recover_pending_conversation(void)
|
||||
{
|
||||
return recover_pending_session();
|
||||
}
|
||||
|
||||
static void copy_json_string(cJSON *object, const char *name, char *target, size_t target_size)
|
||||
{
|
||||
cJSON *item = cJSON_GetObjectItemCaseSensitive(object, name);
|
||||
|
||||
Reference in New Issue
Block a user