Both Arduino and ESP-IDF are supported!
Website: https://freshen.cc
Video Introduction: https://www.youtube.com/watch?v=vZ8dTd0TyP0
[VIDEO] Freshen - device management for ESP32
-
- Posts: 12
- Joined: Wed Dec 28, 2016 10:55 am
Re: [VIDEO] Freshen - device management for ESP32
Free commercial license for self-hosted but no public source? What language, go?
-
- Posts: 12
- Joined: Wed Dec 28, 2016 10:55 am
Re: [VIDEO] Freshen - device management for ESP32
Yes, Go.
Delivered as a docker image container, runnable anywhere.
Delivered as a docker image container, runnable anywhere.
-
- Posts: 6
- Joined: Thu Nov 03, 2016 3:43 pm
Re: [VIDEO] Freshen - device management for ESP32
Do you have an example how to use it with esp-idf without arduino?
Should I implement some call back?
At the moment my code looks like:
And if try to make OTA update through web console it fails:
Should I implement some call back?
At the moment my code looks like:
Code: Select all
...
void task_ota_update(void *ignore) {
while (true) {
vTaskDelay(50 / portTICK_RATE_MS);
freshen_poll_dash(&ctx, FIRMWARE_VERSION, FRESHEN_TOKEN);
}
}
void app_main(void) {
...
initialise_wifi();
xTaskCreatePinnedToCore(&task_ota_update, "task_ota_update", 8196, NULL, 5, NULL, 1);
}
And if try to make OTA update through web console it fails:
Code: Select all
I (3547) freshen: dst [wss][dash.freshen.cc][443][/api/v1/rpc]
I (4167) event: sta ip: 192.168.1.113, mask: 255.255.255.0, gw: 192.168.1.1
I (9957) freshen: WS in: 38 [{"id":0,"method":"info","params":[""]}]
I (9957) freshen: WS out: 125 [{"id":0,"result":"{\"fw_version\": \"0.0.1\",\"arch\": \"esp32\",\"ota_enabled\": true,\"built\": \"Apr 25 2018 15:22:58\"}"}]
I (22917) freshen: WS in: 43 [{"id":1,"method":"ota.begin","params":[""]}]
I (22917) freshen: Starting OTA. update_partition=0x3ffbdf84
I (22917) freshen: WS out: 24 [{"id":1,"result":"true"}]
I (24617) freshen: WS in: 2775 [{"id":2,"method":"ota.write","params":["6QcCIFgQCEDuAAAAAAAAAAAAAAAAAAABIABAP0x6AQAAAAAAAAAAgAAAAKAAA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g9AfSYPQH0mD0B9Jg9AfSYPQEwPD0A1EA9AfSYPQH0mD0B9Jg9ACQ8PQDUQD0BHDw9AfSYPQCgPD0B9Jg9AjxMPQHkXD0ApGw9ARw8PQH0mD0AFHA9A6gsPQAIdD0B9Jg9AfSYPQNMgD0B9Jg9A6gsPQDAwMDAwMDAwMDAwMDAwMDAgICAgICAgICAgICAgICAg0i4PQBUsD0AaLA9AcSwPQKMuD0ChLg9ATC4PQHAuD0D8Lw9ApSwPQOYvD0DxLw9A/C8PQPwvD0D8Lw9ApSwPQKUsD0ClLA9ApSwPQKUsD0ClLA9ApSwPQPEvD0ClLA9ApSwPQKUsD0DbLw9ApSwPQPEvD0ClLA9ApSwPQIosD0ClLA9ApSwPQKUsD0ClLA9ApSwPQKUsD0ClLA9ApSwPQPwvD0ClLA9AmSwPQIosD0D8Lw9A/C8PQPwvD0ClLA9AiiwPQKUsD0ClLA9ApSwPQKUsD0DbLw9AiiwPQNsvD0ClLA9ApSwPQNsvD0ClLA9AiiwPQKUsD0ClLA9AiiwPQGotD0DBLA9A9iwPQJ4tD0DSLQ9AEi4PQDYtD0CdLw9ASC8PQJ0vD0ByLw9Aci8PQJ0vD0A="]}]
I (24857) freshen: WS out: 61 [{"id":g,"error":{"code":-32601,"message":"method not found"}}]
I (25067) freshen: WS close received, closing connection
I (25117) freshen: dst [wss][dash.freshen.cc][443][/api/v1/rpc]
-
- Posts: 64
- Joined: Tue Jan 10, 2017 1:09 pm
Re: [VIDEO] Freshen - device management for ESP32
Hi
can't compile the library (freshen.h) with the latest esp-idf...
why don't you put it on github so we can open issues and track the changes?
When I first gave a look to your project, you provided a component for the framework...
thanks!
can't compile the library (freshen.h) with the latest esp-idf...
Code: Select all
In file included from C:/msys32/home/kw/tutorial/freshen/main/main.c:11:0:
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1644:15: error: field 'conn' has incomplete type
struct conn conn;
^
C:/msys32/home/kw/tutorial/freshen/main/freshen.h: In function 'freshen_publish':
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1684:3: error: implicit declaration of function 'freshen_net_send' [-Werror=implicit-function-declaration]
freshen_net_send(&pd->conn, hdr, header_len);
^
C:/msys32/home/kw/tutorial/freshen/main/freshen.h: In function 'mqtt_parse':
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1750:5: error: implicit declaration of function 'freshen_net_close' [-Werror=implicit-function-declaration]
freshen_net_close(&pd->conn);
^
C:/msys32/home/kw/tutorial/freshen/main/freshen.h: In function 'freshen_poll':
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1837:5: error: implicit declaration of function 'freshen_net_init_conn' [-Werror=implicit-function-declaration]
freshen_net_init_conn(&pd->conn);
^
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1843:8: error: implicit declaration of function 'freconnect' [-Werror=implicit-function-declaration]
if (!freconnect(url, &pd->conn)) {
^
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1844:5: error: implicit declaration of function 'freshen_sleep' [-Werror=implicit-function-declaration]
freshen_sleep(1);
^
C:/msys32/home/kw/tutorial/freshen/main/freshen.h:1855:11: error: implicit declaration of function 'freshen_net_recv' [-Werror=implicit-function-declaration]
int n = freshen_net_recv(&pd->conn, pd->in + pd->in_len,
When I first gave a look to your project, you provided a component for the framework...
thanks!
Who is online
Users browsing this forum: Bing [Bot] and 239 guests