diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/device-dashboard.uvprojx
index 86f29925..7ad4508c 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/device-dashboard.uvprojx
@@ -469,8 +469,8 @@
-
-
+
+
@@ -561,8 +561,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/main.c
index a6c524be..fced8f1e 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-baremetal/main.c
@@ -12,13 +12,14 @@ uint64_t mg_millis(void) { // Let Mongoose use our uptime function
return (uint64_t) HAL_GetTick(); // Return number of milliseconds since boot
}
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void timer_fn(void *arg) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/device-dashboard.uvprojx
index e30226d7..048305f2 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/device-dashboard.uvprojx
@@ -508,8 +508,8 @@
-
-
+
+
@@ -658,8 +658,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/main.c
index 89a4e842..cf0db6c6 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-lwip/main.c
@@ -21,13 +21,14 @@ void SysTick_Handler (void) {
xPortSysTickHandler();
}
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void server(void *args) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/device-dashboard.uvprojx
index 9489e444..81db343c 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/device-dashboard.uvprojx
@@ -533,8 +533,8 @@
-
-
+
+
@@ -619,8 +619,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/main.c
index 4dc46eee..125653ca 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos-tcp/main.c
@@ -18,12 +18,13 @@ void SysTick_Handler (void) {
xPortSysTickHandler();
}
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void server(void *args) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/device-dashboard.uvprojx
index aed9a694..afc6532b 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/device-dashboard.uvprojx
@@ -490,8 +490,8 @@
-
-
+
+
@@ -582,8 +582,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/main.c
index 577ec6de..cea30d6b 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos/main.c
@@ -17,13 +17,14 @@ void SysTick_Handler(void) {
xPortSysTickHandler();
}
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void timer_fn(void *arg) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/device-dashboard.uvprojx
index f1f5946c..df2f9368 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/device-dashboard.uvprojx
@@ -532,8 +532,8 @@
-
-
+
+
@@ -688,8 +688,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/main.c
index 0db16573..6b98788b 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2-lwip/main.c
@@ -14,13 +14,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void server(void *args) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/device-dashboard.uvprojx
index 61f5dc10..bda352d9 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/device-dashboard.uvprojx
@@ -514,8 +514,8 @@
-
-
+
+
@@ -612,8 +612,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/main.c
index 57f128cf..715e9bdb 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-freertos_cmsis2/main.c
@@ -9,13 +9,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void timer_fn(void *arg) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/device-dashboard.uvprojx
index 318ad901..29fc0419 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/device-dashboard.uvprojx
@@ -499,8 +499,8 @@
-
-
+
+
@@ -687,8 +687,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/main.c
index 3bd039ab..13e2736b 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx-mdk/main.c
@@ -10,13 +10,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void server(const void *args) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/device-dashboard.uvprojx
index a891382e..56156ce8 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/device-dashboard.uvprojx
@@ -481,8 +481,8 @@
-
-
+
+
@@ -587,8 +587,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/main.c
index d5a1edef..436075f2 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx/main.c
@@ -9,13 +9,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void timer_fn(void *arg) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/device-dashboard.uvprojx
index a54a09fb..1b062b53 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/device-dashboard.uvprojx
@@ -499,8 +499,8 @@
-
-
+
+
@@ -671,8 +671,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/main.c
index 1fc92177..e5598759 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-lwip/main.c
@@ -14,13 +14,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void server(void *args) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/device-dashboard.uvprojx
index ac3a965c..1216dbae 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/device-dashboard.uvprojx
@@ -499,8 +499,8 @@
-
-
+
+
@@ -695,8 +695,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/main.c
index 9e823569..d5b90b8c 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5-mdk/main.c
@@ -10,13 +10,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void server(void *args) {
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/device-dashboard.uvprojx b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/device-dashboard.uvprojx
index d284a20a..87527e97 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/device-dashboard.uvprojx
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/device-dashboard.uvprojx
@@ -481,8 +481,8 @@
-
-
+
+
@@ -595,8 +595,8 @@
RTE\Network_Library\mongoose_config.h
-
-
+
+
diff --git a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/main.c b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/main.c
index 1c297dd9..5537ceaf 100644
--- a/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/main.c
+++ b/extra/cmsis-pack/Boards/ST/NUCLEO-F746ZG/nucleo-f746zg-keil-rtx5/main.c
@@ -9,13 +9,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
-void mg_random(void *buf, size_t len) { // Use on-board RNG
+bool mg_random(void *buf, size_t len) { // Use on-board RNG
extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
}
+ return true;
}
static void timer_fn(void *arg) {
diff --git a/extra/cmsis-pack/Cesanta.Mongoose.pdsc b/extra/cmsis-pack/Cesanta.Mongoose.pdsc
index 43227b46..5e4d5c04 100644
--- a/extra/cmsis-pack/Cesanta.Mongoose.pdsc
+++ b/extra/cmsis-pack/Cesanta.Mongoose.pdsc
@@ -9,8 +9,8 @@
License.txt
https://github.com/cesanta/mongoose.git
-
- See https://github.com/cesanta/mongoose/releases/tag/7.13
+
+ See https://github.com/cesanta/mongoose/releases/tag/7.16
@@ -29,12 +29,12 @@
-
+
Mongoose HTTP/MQTT/Websocket Library
-
+
diff --git a/extra/cmsis-pack/Mongoose/config/mongoose_custom.h b/extra/cmsis-pack/Mongoose/config/mongoose_config.h
similarity index 100%
rename from extra/cmsis-pack/Mongoose/config/mongoose_custom.h
rename to extra/cmsis-pack/Mongoose/config/mongoose_config.h