cpq
2192914cbb
Create MG_ARCH_FREERTOS, MG_ENABLE_LWIP, MG_ENABLE_FREERTOS_TCP. Remove MG_ARCH_FREERTOS_TCP, MG_ARCH_RTX_LWIP
2022-11-07 23:58:58 +00:00
Sergio R. Caprile
6f3bdc5dca
Remove some warnings
2022-11-07 15:23:47 -03:00
cpq
efec738c89
ARP lookup hosts in the same net. Use up-to-date code in zephyr dash example
2022-11-03 08:06:17 +00:00
cpq
c25234df83
Better MIP description
2022-10-27 08:12:22 +01:00
Sergio R. Caprile
eeb7b00f60
Allow flash and cloning without build
2022-10-25 10:41:53 -03:00
Sergio R. Caprile
fe6c31acc1
Make pico-w device-dashboard example fully functional
2022-10-20 11:57:00 -03:00
Sergio R. Caprile
ae7ca00e69
Dettach git clone and fix clean
...
The user has to clone the repo, then edit the Makefile to change WiFi credentials. Running make build does both and the tests go flawlessly
The user can run make to clone the repo, then change credentials and run make build, it will skip cloning if the repo is already there
In some systems the compiled files are not owned by the user as Docker runs as root, so we first invoke clean in the cloned repo (which erases the compiled files), and then remove the cloned repo that the user owns and can rm.
2022-10-14 12:09:39 -03:00
cpq
e8d29d54d6
Use board nucleo_f429zi
2022-10-14 11:39:00 +01:00
Sergio R. Caprile
6edcc72364
fix paths in Makefile
2022-10-10 16:51:07 -03:00
Sergey Lyubka
250dfc1377
Merge pull request #1790 from cesanta/zephyr-device-dashboard
...
Add device-dashboard example on Zephyr
2022-10-10 15:59:08 +01:00
Sergey Lyubka
45489c1c87
Merge pull request #1789 from zudwalex/picow
...
Add Pico-W example
2022-10-10 15:58:53 +01:00
Sergey Lyubka
09b250f189
Merge pull request #1787 from cesanta/zephyr
...
Update Zephyr examples
2022-10-10 15:58:39 +01:00
zahar517
52e66077a7
Fix json-rpc-over-ws example
2022-10-08 14:39:01 +03:00
Sergio R. Caprile
84bf4d21a3
Add device-dashboard example on Zephyr
2022-10-07 11:52:31 -03:00
Alex Alashkin
04cfc510d0
Add Pico-W example
2022-10-07 09:11:35 +03:00
Sergio R. Caprile
d846e67ec1
Update Zephyr examples
2022-10-06 17:30:27 -03:00
Sergey Lyubka
8346be7a81
Merge pull request #1783 from cesanta/zephyr
...
Update to latest Zephyr and their Docker repo
2022-10-05 11:41:55 +01:00
Sergio R. Caprile
e7cb82175a
rename time() to ourtime()
2022-10-04 19:27:38 -03:00
Sergio R. Caprile
1ef0aa14c0
Update to latest Zephyr and their Docker repo
2022-10-04 17:24:13 -03:00
Sergio R. Caprile
7cf4834336
Fix wrong ca.pem path
...
Remove extra EHLO before AUTH (there were two)
2022-09-28 16:05:29 -03:00
cpq
5574a2663a
Close connection on 3 keep-alive misses
2022-09-25 17:35:14 +01:00
Sergey Lyubka
dcede59379
Merge pull request #1743 from cesanta/stm32-nucleo-f746z
...
Stm32 nucleo f746z
2022-09-25 10:22:52 +01:00
Sergey Lyubka
695153c527
Merge pull request #1762 from gdawg/ssdp-example-fix-dupe-responses
...
Fix SSDP example for second and subsequent responses
2022-09-25 10:20:55 +01:00
Andrew Griffiths
25d42ad345
Fix SSDP example for second and subsequent responses
2022-09-24 14:14:26 +10:00
Sergio R. Caprile
770ffd1483
Add new example as per the tutorial
2022-09-22 11:32:52 -03:00
Sergio R. Caprile
9373e77636
Update Makefile as per the tutorial, enhance it
2022-09-22 11:01:40 -03:00
cpq
48800504be
Add smtp client example
2022-09-20 11:34:22 +01:00
Sergey Lyubka
161d44ee04
Merge pull request #1730 from cesanta/stm32-nucleo-f429z
...
Update Makefile as per the tutorial
2022-09-13 21:46:41 +01:00
Sergey Lyubka
7ea155b943
Merge pull request #1729 from cesanta/mip-tap
...
Add example to use TAP interface on Linux
2022-09-13 21:46:06 +01:00
cpq
82b50fd3a5
Pass MDC clock divider explicitly rather than guess
2022-09-12 23:57:04 +01:00
Sergio R. Caprile
9e5503dd04
Update Makefile as per the tutorial
2022-09-12 17:29:47 -03:00
Sergio R. Caprile
2ec2ed62c8
Add example to use TAP interface on Linux
2022-09-12 10:52:23 -03:00
cpq
76c4bb556f
Update README
2022-09-11 11:23:58 +01:00
cpq
40f484cc54
Update README
2022-09-11 11:20:53 +01:00
cpq
85b701b8c2
Formatting
2022-09-10 21:49:20 +01:00
cpq
c718d7999f
Add MAC addr filtering to stm32 driver. Record free space in q profiler
2022-09-10 16:38:03 +01:00
Sergio R. Caprile
1b5ab3261c
Merge pull request #1722 from cesanta/mip-tls
...
Add mbedtls support to MIP
2022-09-09 14:09:19 -03:00
cpq
124ac12150
Add mbedtls support to MIP
2022-09-09 15:53:42 +01:00
Sergio R. Caprile
8c1ffa3f5d
Added Linux howto
2022-09-09 10:42:46 -03:00
cpq
f76a7e36e8
Corrected MacOS setup diagram
2022-09-08 12:11:01 +01:00
cpq
6484c4bc8b
Updated description
2022-09-08 12:09:30 +01:00
cpq
bba2421ba9
Corrected MacOS setup diagram
2022-09-08 11:36:01 +01:00
cpq
3c69c7feaf
Add MacOS setup diagram
2022-09-08 11:28:16 +01:00
cpq
45b2ffe1af
Use DMG_HTTP_DIRLIST_TIME
2022-09-08 11:02:32 +01:00
cpq
06ab83dca6
Implement keep-alive, 45 sec interval. Correct ACK piggyback
2022-09-08 08:50:42 +01:00
cpq
881b282604
Implement ack timer
2022-09-07 20:48:23 +01:00
cpq
b2624f6055
Make mip-pcap work on Mac
2022-09-07 13:36:00 +01:00
Sergey Lyubka
51076e68c8
Merge pull request #1701 from cesanta/enableFPU
...
Enable FPU
2022-09-02 15:46:00 +01:00
Sergio R. Caprile
3270f1252b
Enable FPU
2022-09-02 11:18:11 -03:00
Sergey Lyubka
d8ee105e1e
Merge pull request #1699 from cesanta/scb
...
Fix SCB address for scb struct
2022-09-02 14:09:08 +01:00
cpq
f7f7319698
Refactor W5500 driver, add arduino w5500 example
2022-09-02 12:58:54 +01:00
Sergio R. Caprile
62a6b61fc9
Fix SCB address for scb struct
2022-09-01 17:14:31 -03:00
cpq
1949439d69
Adopt mip changes
2022-08-31 08:44:05 +01:00
cpq
c131b8daf1
struct mip_ipcfg -> struct mip_cfg
2022-08-31 08:41:16 +01:00
Sergey Lyubka
3cf85770c7
Merge pull request #1694 from cesanta/nucleo-f746zg-baremetal
...
Group clock setup dependencies
2022-08-30 12:25:41 +01:00
Sergio R. Caprile
42c1bee8ea
Add baremetal example on Nucleo-F429ZI
2022-08-29 19:20:20 -03:00
Sergio R. Caprile
c289556775
Group clock setup dependencies
2022-08-29 14:36:40 -03:00
cpq
1c16e95b3a
Fix driver link
2022-08-29 08:55:53 +01:00
cpq
2f3f1357c8
Unbreak after mip init API change
2022-08-27 17:15:11 +01:00
cpq
dcdeffff9a
MIP refactor: use mg_hton*, move driver_data to ifp, parametrise f746 PLL setup
2022-08-27 16:45:31 +01:00
Sergio R. Caprile
d1124703b7
Merge pull request #1687 from cesanta/webui-login
...
Fix SameSite cookie value
2022-08-26 10:24:00 -03:00
Sergio R. Caprile
4a8dd81c93
Fix SameSite cookie value
2022-08-26 10:22:31 -03:00
cpq
f474a31484
Rebuild packed_fs.c
2022-08-26 14:21:33 +01:00
cpq
e9ec2c5304
Add TLS support to MQTT
2022-08-26 14:20:54 +01:00
cpq
c7b9ca68c2
Move mg_mqtt_next-* to the example, and some nits
2022-08-26 14:20:54 +01:00
Sergio R. Caprile
3d3f6e09b6
Fix SameSite cookie value
2022-08-26 10:17:49 -03:00
Sergey Lyubka
7252f5385b
Merge pull request #1683 from cesanta/multi-threaded
...
Show how to send data to a worker thread
2022-08-25 23:53:29 +01:00
Sergio R. Caprile
ad641880a6
Show how to send data to a worker thread
2022-08-25 17:00:47 -03:00
Sergio R. Caprile
3cd4fd2d61
Workaround for aliased weak symbol override issue
...
Changed README to use picocom as cu is apparently not able to add carriage return after line feed
2022-08-24 19:02:11 -03:00
Sergey Lyubka
060f43839d
Merge pull request #1680 from cesanta/esp8266
...
Expanded Makefile
2022-08-20 00:27:09 +01:00
cpq
9c3c4a6f4b
MIP client
2022-08-20 00:03:15 +01:00
Sergio R. Caprile
e47f71344d
Expanded Makefile
2022-08-19 18:17:52 -03:00
Sergey Lyubka
2bf25a1406
Merge pull request #1678 from cesanta/esp8266
...
Improved Makefile to be able to flash
2022-08-18 22:30:20 +01:00
Sergio R. Caprile
dd59296be9
Improved Makefile to be able to flash
...
subtle mod in main.c comment
2022-08-18 17:41:05 -03:00
cpq
b382726ed0
Build dashboard by default, fix FPU flag
2022-08-18 21:36:36 +01:00
Sergey Lyubka
01390fe540
Merge pull request #1675 from cesanta/stm32h743
...
Change README to point to new tutorial location
2022-08-17 08:30:41 +01:00
cpq
8596e1bef7
Enable FPU
2022-08-16 16:45:05 +01:00
Sergey Lyubka
13fffbc5b6
Merge pull request #1674 from cesanta/webui-preact
...
back to symbolic link
2022-08-16 11:56:08 +01:00
Sergio R. Caprile
bd8f0c90e1
back to symbolic link
2022-08-15 18:42:20 -03:00
Sergio R. Caprile
4f012d6bc6
Change argument of %M handler to mg_pfn_t as in huge_response
2022-08-15 16:04:17 -03:00
cpq
d2a27d3d91
mg_*rprintf -> mg_*xprintf
2022-08-13 20:34:20 +01:00
cpq
189aa80743
Update examples to NOT use mg_*mprintf
2022-08-13 20:09:51 +01:00
cpq
de10e340b6
Update examples to use mg_http_reply
2022-08-13 14:52:10 +01:00
cpq
6615a821f1
Test WS frames that are larger than 64k
2022-08-13 11:16:13 +01:00
Sergio R. Caprile
d627d669bc
Change README to point to new tutorial location
2022-08-12 17:08:18 -03:00
cpq
ef6fbad0cb
Better CFLAGS for SSL when building examples
2022-08-11 12:12:00 +01:00
Sergey Lyubka
1a6bfb65e6
Merge pull request #1669 from cesanta/embedded-filesystem
...
Add Embedded Filesystem example
2022-08-10 21:45:23 +01:00
Sergio R. Caprile
014a008c3a
Add Embedded Filesystem example
2022-08-10 16:05:34 -03:00
cpq
2ba3630de9
Remove dangerous mg_pfn_realloc(). Add %q printf specifier
2022-08-10 18:27:58 +01:00
Sergio R. Caprile
0ca752662d
Added TLS support
2022-08-08 15:42:35 -03:00
Sergey Lyubka
608b1ee156
Merge pull request #1665 from cesanta/esp32-device-dashboard
...
Changed README to point to new tutorial location
2022-08-05 19:20:35 +01:00
Gisle Vanem
96df718304
Fix empty initializer
...
MSVC does not like such empty initializer:
xamples/device-dashboard/net.c(116): error C2059: syntax error: '}'
2022-08-05 13:50:55 +02:00
Sergey Lyubka
ae29a1734c
Merge pull request #1660 from cesanta/device-dashboard
...
device-dashboard: default to using packed fs, otherwise hw examples won't work
2022-08-04 17:13:03 +01:00
Sergio R. Caprile
22b2dc9ea8
Update README.md
2022-08-03 14:38:12 -03:00
Sergio R. Caprile
e01cffff46
Changed README to point to new tutorial location
...
Expanded Makefile to be able to flash with Docker and esputil
2022-08-02 16:10:34 -03:00
Sergio R. Caprile
d88e438679
default to using packed fs, otherwise hw examples won't work
2022-08-02 16:06:19 -03:00
Sergio R. Caprile
70683fc8e7
Fix for new mg_iobuf API
2022-08-02 14:46:27 -03:00
Sergey Lyubka
a468f58128
Use int debug level
2022-08-01 11:19:32 +01:00
Sergey Lyubka
581a0698af
Expose rpc guts
2022-07-31 22:51:59 +01:00
Sergey Lyubka
43d53b0616
Merge pull request #1650 from cesanta/esp32-uart
...
Fix Makefile
2022-07-30 07:57:37 +01:00
Sergey Lyubka
54d6bad5e5
Refactor JSON and RPC API
2022-07-30 07:55:26 +01:00
Sergio R. Caprile
c37d4f768b
Fix Makefile
2022-07-29 18:27:20 -03:00
Sergey Lyubka
a4b003b7ac
Merge pull request #1644 from cesanta/esp32_uart-bridge
...
Fix Makefile
2022-07-28 21:04:27 +01:00
Sergey Lyubka
433120ab22
Merge pull request #1637 from cesanta/webui-push-rest
...
Add data push using REST example
2022-07-28 20:54:20 +01:00
Sergio R. Caprile
109da5f515
Add data push using REST example
2022-07-28 10:20:22 -03:00
Sergey Lyubka
02943a1082
Merge pull request #1649 from cesanta/tcp
...
Added plain TCP server and client example
2022-07-28 10:27:10 +01:00
Sergey Lyubka
64a36496e3
Merge pull request #1643 from cesanta/uart-bridge
...
Fixes to uart-bridge example
2022-07-28 10:26:51 +01:00
Sergio R. Caprile
638892ca70
Fix incorrect oninput function call
...
Check a new config element is present before acting on the previous one
Correctly update config local copy
Fix TCP buffering for ever
2022-07-27 17:19:34 -03:00
Sergio R. Caprile
90fdbd36ec
Added plain TCP server and client example
2022-07-27 13:40:02 -03:00
Sergey Lyubka
0dabc45780
Add RPC API
2022-07-27 00:46:05 +01:00
Sergio R. Caprile
0ffec91984
Fix Makefile
2022-07-25 11:27:19 -03:00
Sergey Lyubka
9cacf443e1
Merge pull request #1636 from cesanta/webui-push-ws
...
Added data push over WS example
2022-07-25 11:03:06 +01:00
Sergey Lyubka
d1828ecdb4
Merge pull request #1634 from cesanta/webui-plain
...
Fix former config value not being freed
2022-07-18 21:24:07 +01:00
Sergio R. Caprile
1651d9d6d9
Fix former config value not being freed
2022-07-18 16:21:02 -03:00
Sergio R. Caprile
40fc049cdc
Added web UI login example
2022-07-18 14:12:42 -03:00
Sergey Lyubka
89afe62121
Merge pull request #1627 from cesanta/webui-rest
...
added webUI REST basics example
2022-07-17 18:09:02 +01:00
Sergey Lyubka
e5b40ee29e
Merge pull request #1630 from cesanta/webui-plain
...
added webUI plain JS example
2022-07-17 18:08:45 +01:00
Sergio R. Caprile
aa326f975d
Added data push over WS example
2022-07-15 21:32:41 -03:00
Sergio R. Caprile
ca929031ee
added webUI Preact-based example
2022-07-13 14:41:38 -03:00
Sergio R. Caprile
f80477a093
added webUI plain JS example
2022-07-13 11:07:01 -03:00
Sergio R. Caprile
abd7698d6d
added webUI REST basics example
2022-07-13 10:45:49 -03:00
Sergio R. Caprile
71eefb6272
Update to new %M API
...
Doc still references the old API and mg_rprintf() is not yet documented
2022-07-06 19:01:18 -03:00
Sergio R. Caprile
16e90c3082
updated docs and example to recently exported MQTT result codes
2022-07-04 14:32:12 -03:00
Sergey Lyubka
e4a5296fbf
Introduce c->is_mqtt5 for keeping mqtt version. Make mqtt over ws work again
2022-07-04 17:47:17 +01:00
Sergey Lyubka
f841b85d7d
Merge pull request #1614 from cesanta/udp-ssdp-search
...
Added parsing of remote responses
2022-07-04 15:14:39 +01:00
Sergio R. Caprile
f7812c9b0a
Added parsing of remote responses
2022-07-02 13:16:49 -03:00
Sergio R. Caprile
d13509e302
Update app.js
2022-07-01 15:58:03 -03:00
Sergey Lyubka
035de980e3
Fix ff_read() call
2022-07-01 13:18:49 +01:00
Sergey Lyubka
99f0688377
Change mg_http_upload API
2022-06-30 21:54:50 +01:00
Sergey Lyubka
86e57d243d
Enhance esp32 makefile
2022-06-30 19:59:23 +01:00
Sergio R. Caprile
75069a44c7
updated SSL build options
2022-06-29 17:31:31 -03:00
Sergey Lyubka
3bc79b9dfd
Merge pull request #1609 from cesanta/mqtt-over-ws-client
...
Added openSSL support
2022-06-29 19:18:25 +01:00
Sergio R. Caprile
0ae75e6db6
Added openSSL support
2022-06-29 14:57:11 -03:00
Sergey Lyubka
017c7290d6
Better error handling - report from iotest
2022-06-29 17:02:37 +01:00
Sergey Lyubka
6a8b5b06d0
Merge pull request #1608 from cesanta/fix_mqtt-over-ws-client
...
fix incorrect WS packet payload
2022-06-29 14:51:39 +01:00
Sergey Lyubka
e8f050c194
Dont use realloc
2022-06-29 00:00:16 +01:00
Sergio R. Caprile
712517b6fa
fix incorrect WS packet payload
2022-06-28 16:27:49 -03:00
Sergey Lyubka
434378eda5
Merge pull request #1602 from cesanta/device-dashboard
...
fixed watch() not being called after login
2022-06-28 20:24:36 +01:00
Sergey Lyubka
cf38fdb720
Merge pull request #1606 from cesanta/mqtt-client
...
fixed TLS build comment
2022-06-28 20:23:45 +01:00
Sergio R. Caprile
6542c02b7f
fixed TLS build comment
2022-06-28 10:56:56 -03:00
Sergio R. Caprile
a13144932a
fixed TLS build comment
2022-06-28 10:49:45 -03:00
Sergio R. Caprile
6597830631
fixed watch() not being called after login
2022-06-28 10:26:32 -03:00
Sergey Lyubka
ba08140197
Initial mqtt5 support
2022-06-28 11:31:13 +01:00
Sergey Lyubka
d65ce3b596
Add mg_rprintf, mg_vrprintf
2022-06-28 00:45:52 +01:00
Sergio R. Caprile
dcfb014d1f
updated and cleaned up texts
2022-06-23 15:33:31 -03:00
Sergey Lyubka
4f9cfdf65d
Merge pull request #1598 from cesanta/http-reverse-proxy
...
Added openSSL support
2022-06-20 22:00:14 +01:00
Sergey Lyubka
b1cd233dda
Merge pull request #1597 from cesanta/http-proxy-client
...
Added openSSL support
2022-06-20 21:59:48 +01:00
Sergio R. Caprile
380a50e39b
Added openSSL support
...
Fixed missing parameter in makefile
Added URI handling
2022-06-20 15:27:46 -03:00
Sergio R. Caprile
3bd3a4ff7b
fixed comment, updated TLS section in makefile
2022-06-20 14:50:45 -03:00
Sergey Lyubka
46bf79455c
Add examples/esp32/uart-bridge
2022-06-19 18:27:37 +01:00
Sergey Lyubka
0b5a00c99a
Change uart_read signature
2022-06-18 20:41:04 +01:00
Sergey Lyubka
ba8482c707
Update uart bridge
2022-06-18 11:32:31 +01:00
Sergey Lyubka
1b34360b05
Update uart bridge
2022-06-18 11:30:44 +01:00
Sergey Lyubka
c84dab21e4
Refactor UART example
2022-06-18 04:25:11 +01:00
Sergey Lyubka
adcf5bab0e
Merge pull request #1589 from cesanta/mqtt-client
...
Add support for openSSL
2022-06-17 22:04:38 +01:00
Sergio R. Caprile
f4fc33d111
brought back 7.5 file-upload as file-upload-multiple-posts; updated to latest API
...
renamed form-upload to file-upload-html-form
renamed file-upload to file-upload-single-post
2022-06-17 16:35:02 -03:00
Sergio R. Caprile
fb446022e2
Added openSSL support
...
Backend host is https only if TLS is enabled
2022-06-16 11:59:06 -03:00
Sergio R. Caprile
e021d7cd9d
Add support for openSSL
2022-06-15 10:42:32 -03:00
Sergey Lyubka
6d46ecaa6c
Add mip-pcap example
2022-06-13 02:03:52 +01:00
Sergey Lyubka
d3368e4aad
Move mip into mip/
2022-06-11 17:29:45 +01:00
Sergio R. Caprile
0dbc99d9ee
fixed poll timeout being larger than timer period
2022-06-10 16:59:14 -03:00
Sergio R. Caprile
505ca96547
fixed typo
2022-06-10 16:25:56 -03:00
Sergio R. Caprile
2f75418c70
Remove outdated comments
2022-06-10 10:37:12 -03:00
Sergey Lyubka
55948cd431
Allow to set log level
2022-06-10 12:33:30 +01:00
Sergey Lyubka
dfca896a64
Update huge response. More tests
2022-06-10 12:14:42 +01:00
Sergey Lyubka
8fc6f3f744
Remove mjson dependency
2022-06-10 09:40:22 +01:00
Sergey Lyubka
f65058fa03
Remove mjson dependency
...
Signed-off-by: Sergey Lyubka <valenok@gmail.com>
2022-06-10 09:39:53 +01:00
Sergey Lyubka
cff208c5a9
Introduce %Q format specifier, rework device dashboard
2022-06-08 21:44:01 +01:00
Sergey Lyubka
a83dd9569d
Unbreak esp32 example
2022-06-08 20:04:35 +01:00
Sergey Lyubka
ac3151f871
Make dashboard more robust
2022-06-08 19:53:29 +01:00
Sergey Lyubka
bcb6c2675f
Unbreak esp32 device dashboard build
2022-06-08 13:54:20 +01:00
Sergey Lyubka
6b51666248
Move esp32 example
2022-06-08 13:24:41 +01:00
Sergey Lyubka
628a007112
Refresh packed filesystems
2022-06-08 13:22:09 +01:00
Sergey Lyubka
9f8424e93f
Update readme
2022-06-08 09:06:14 +01:00
Sergey Lyubka
2e750236be
Add uart-bridge example
2022-06-08 08:58:32 +01:00
Sergey Lyubka
e75afcba42
Update dash UI
2022-06-05 17:17:19 +01:00
Sergey Lyubka
31c7d66245
Rework dashboard
2022-06-05 14:59:59 +01:00
Sergey Lyubka
219428c249
Change device dashboard to use MQTT
2022-06-04 22:21:59 +01:00
Sergey Lyubka
c48349ba56
Add sntp-time-sync example
2022-06-03 13:57:57 +01:00
Sergio R. Caprile
7da5d42009
Merge pull request #1573 from cesanta/timers
...
Minor cosmetic changes
2022-06-02 10:06:41 -03:00
Sergey Lyubka
a88ea776a9
Change MG_MAX_RECV_BUF_SIZE -> MG_MAX_RECV_SIZE
2022-06-02 13:50:44 +01:00
Sergey Lyubka
063244e4ca
Minor cosmetic changes
2022-06-01 21:15:31 +01:00
Sergey Lyubka
f735585239
Update timers example
2022-06-01 17:09:15 +01:00
Sergey Lyubka
30349ec217
Update timers example
2022-06-01 17:09:13 +01:00
Sergey Lyubka
55517d48ed
Change linux target
2022-06-01 16:25:04 +01:00
Sergey Lyubka
a3d63c095a
Handle #1562 - add udp/tcp extra param to mg_mkpipe()
2022-05-31 18:23:32 +01:00
Sergey Lyubka
2ae341cf5e
Add nucleo-f746zg-baremetal
2022-05-26 13:53:36 +01:00
Sergey Lyubka
69082db381
Regenerated packed fs
2022-05-25 11:15:00 +01:00
Sergey Lyubka
c2d2d085cd
Add chart example
2022-05-23 15:27:19 +01:00
Sergey Lyubka
b3a4c12d67
Handle #1559 - set no flags in send() call
2022-05-22 23:49:38 +01:00
Sergey Lyubka
7e2ca72310
Remove mg_log_set_callback. Use MG_PUTCHAR macro instead
2022-05-20 09:45:17 +01:00
Sergey Lyubka
47e15a3d47
RTX nits
2022-05-17 19:29:53 +01:00
Alex Alashkin
ac55c900e7
Use docker for Zephyr CI
2022-05-16 15:30:25 +03:00
Sergey Lyubka
f5fd176b35
Increate SNTP timeout 3s->5s. Change mg_sntp_send() to mg_sntp_request(), remove one unnecessary parameter
2022-05-15 18:41:01 +01:00
Alex Alashkin
0ed7545947
Add TI support
2022-05-15 19:25:50 +03:00
Sergey Lyubka
95e22e8d4f
Exporting only dashboard func
2022-05-15 14:40:58 +01:00
Sergey Lyubka
443d0f0c6c
Rename complete -> device-dashboard, remove multiple-logins and dashboard
2022-05-14 09:08:23 +01:00
Sergey Lyubka
c20e48179f
Un-break the test and untie serving code in dash example
2022-05-13 22:15:33 +01:00
Sergey Lyubka
3fbb7de712
Refactor dashboard example
2022-05-13 20:08:08 +01:00
Sergey Lyubka
5271626947
Disable SSI by default
2022-05-08 21:54:15 +01:00
Sergey Lyubka
6db0485c7b
Set c->loc for accepted and UDP connections
2022-05-06 20:19:40 +01:00
Sergey Lyubka
f19eec7fae
Refactor multithreading API
2022-04-25 14:56:15 +01:00
Alex Alashkin
56c40ff0fd
Fix zephyr tests
2022-04-20 09:28:36 +03:00
Sergey Lyubka
20fc8f0279
Handle #1529 : add automatic linkage against ws2_32.lib on _WIN32 targets
2022-04-19 18:51:28 +01:00
Sergey Lyubka
944704a12d
Fix #1528 : pack.c build on Win32
2022-04-19 18:46:29 +01:00
Alex Alaskin
a7c24aeeee
Add Zephyr build to Github actions
2022-04-13 19:54:08 +03:00
Sergey Lyubka
186eb998ba
Adjust to timer API change, add root makefile
2022-04-13 14:03:00 +01:00
Sergey Lyubka
d630ba743d
Merge pull request #1524 from zudwalex/zephyr2
...
Add Zephyr examples
2022-04-13 11:17:22 +01:00
Sergey Lyubka
ebd2e89faa
Handle #1522 - Fix TLS buffering
2022-04-13 10:48:17 +01:00
Alex Alashkin
17e0fb1c15
Add Zephyr examples
2022-04-13 11:10:22 +03:00
Sergey Lyubka
6e3e77a1a0
Enhance http-streaming-client
2022-04-12 19:06:37 +01:00
Sergey Lyubka
ef44f90491
Fix #1520 - move state to struct mg_mgr
2022-04-12 14:14:55 +01:00
Sergey Lyubka
b20eded30e
Fix ESP32 example
2022-04-05 12:54:20 +01:00
Sergey Lyubka
affcef7e37
Fix clean targets
2022-04-03 00:04:58 +01:00
Sergey Lyubka
b5fcf95b88
Enable mbedTLS
2022-04-01 21:33:09 +01:00
Sergey Lyubka
d954851d43
Drop CRL from mbedTLS integration - let customer do a custom init if required
2022-04-01 16:42:41 +01:00
Sergey Lyubka
3d9fa10485
Increase sock limit, fix multiple connections issue
2022-04-01 15:42:15 +01:00
Sergey Lyubka
4e0039625e
Remove cruft
2022-03-31 18:07:15 +01:00
Sergey Lyubka
6c909f8935
Disable SNTP
2022-03-31 18:02:29 +01:00
Sergey Lyubka
4f5d385e52
Enable SNTP in zephyr example
2022-03-31 17:42:09 +01:00
Sergey Lyubka
84fe1d87b3
Enable DHCP
2022-03-31 17:26:58 +01:00
Sergey Lyubka
bb0bc41f99
Add zephyr example skeleton
2022-03-31 16:58:27 +01:00
Sergey Lyubka
ad4812218d
Handle #1497 - handshake format
2022-03-21 15:17:09 +00:00
Sergey Lyubka
7ef82f5caf
Add vc2017 target
2022-03-21 14:38:42 +00:00
Sergey Lyubka
1141ea7933
Add connection timeout
2022-03-20 18:50:01 +00:00
Sergey Lyubka
6c021765bb
Merge pull request #1479 from zudwalex/infineon_rtx_support
...
Add RTX-RTOS support
2022-03-18 09:18:49 +00:00
Sergey Lyubka
870431dc1a
Enhance HTTP client example
2022-03-15 14:14:36 +00:00
Sergey Lyubka
d255fc737a
Fix mongoose.exe target
2022-03-15 10:03:00 +00:00
Sergey Lyubka
7bf8b81995
Fix mg_http_delete_chunk()
2022-03-11 15:38:59 +00:00
Alex Alashkin
412f5cf3e0
Add RTX-RTOS support
2022-02-23 19:56:37 +02:00
Sergey Lyubka
e99973d4b7
Introduce local address
2022-02-22 22:00:55 +00:00
Sergey Lyubka
4fec149345
Disable dirlist by default
2022-02-14 11:32:01 +00:00
Sergey Lyubka
969b84043c
Fix #1465 - rename LL_* constants, introduce MG_* log macros
2022-02-12 18:17:25 +00:00
Sergey Lyubka
54f75889fa
Using mg_snprintf() everywhere
2022-02-10 17:11:03 +00:00
Sergey Lyubka
f64c86d23f
Use mg_snprintf()
2022-02-10 11:56:55 +00:00
Sergey Lyubka
9e634310b4
Use MG_EV_HTTP_CHUNK for streaming upload
2022-02-09 12:24:06 +00:00
Sergey Lyubka
33666e7d6b
Fix ESP32 example
2022-02-08 14:13:47 +00:00
Sergey Lyubka
40d4c7e410
Fix ESP32 example
2022-02-08 13:43:34 +00:00
Sergey Lyubka
49d5aff8f9
Call realpath() against root_dir only when there are no overrides
2022-02-01 11:10:01 +00:00
Sergey Lyubka
63b880e624
Handle #1459 - deprecate mg_globmatch, introduce mg_match()
2022-01-29 11:03:54 +00:00
Sergey Lyubka
768f67ae0a
Fix #1458 - fail on example build error, and fix examples/mqtt-server
2022-01-27 12:10:03 +00:00
Sergey Lyubka
f6cebf6956
Listen on INADDR_ANY by default
2022-01-22 17:03:27 +00:00
Sergey Lyubka
226917e1cd
Use mg_str, not pointers, in mg_mqtt_{sub,pub}
2022-01-19 09:57:27 +00:00
Sergey Lyubka
fe813ee247
Add buf,len params to mg_mgr_wakeup()
2022-01-19 09:25:01 +00:00
Sergey Lyubka
d0857fe36c
Add mkdir to the FS API
2022-01-18 19:19:34 +00:00
Sergey Lyubka
56a7438114
Add fs arg to mg_file* and mg_http_upload API
2022-01-18 17:11:02 +00:00
Sergey Lyubka
97f95e17db
Better strategy for restoring multicast address
2022-01-07 18:40:48 +00:00
Sergey Lyubka
6725d61b3f
Re-init SSDP peer address before every search
2022-01-07 18:28:51 +00:00
Sergey Lyubka
f7ff571c5f
Added SSDP search example
2022-01-05 13:22:00 +00:00
Sergey Lyubka
6ad4d242c2
Better cleanup
2022-01-05 11:45:22 +00:00
Sergey Lyubka
030b1d9826
Remove wrong comment
2021-12-27 03:31:33 +00:00
Sergey Lyubka
f6ffa7b3b9
Add huge-response example
2021-12-27 03:25:28 +00:00
Sergey Lyubka
137efe2233
Show requests in flight
2021-12-24 20:46:31 +00:00
Sergey Lyubka
26a97ec36c
Fix #1434 - set will QoS in CONNECT message correctly, and rename qos -> will_qos in struct mg_mqtt_opts
2021-12-23 11:00:18 +00:00
Sergey Lyubka
f29807aad8
Resolve root path before serving to avoid double dots
2021-12-22 18:05:03 +00:00
Sergey Lyubka
fb0a9bc7e3
Fix build
2021-12-21 18:16:12 +00:00
Sergey Lyubka
9e0f04dc8b
Add -S option
2021-12-20 16:35:16 +00:00
Sergey Lyubka
d311e967fa
Add mingw target
2021-12-16 09:22:28 +00:00
Sergey Lyubka
755bf3c412
Split TLS files and introduce MG_ENABLE_CUSTOM_TLS
2021-12-14 12:42:41 +00:00
Sergey Lyubka
25e76d761e
Fix usage message
2021-11-29 14:00:03 +00:00
Sergey Lyubka
013520b0c0
Add note for mg_http_serve_dir()
2021-11-25 12:29:45 +00:00
Sergey Lyubka
922e1ce529
Make captive portal work on Linux
2021-11-23 17:52:54 +00:00
Sergey Lyubka
7a707cc64b
Add README
2021-11-23 15:08:34 +00:00
Sergey Lyubka
1967acfef2
Make it build on vc98
2021-11-23 13:24:21 +00:00
Sergey Lyubka
e24cb04003
Update URL
2021-11-23 09:37:03 +00:00
Sergey Lyubka
67974746ff
Add json-rpc-over-ws example
2021-11-22 16:45:14 +00:00
Sergey Lyubka
8d916d41d7
Fix #1409 - remove VLA which confuses MSVC
2021-11-22 12:24:58 +00:00
Sergey Lyubka
2c50069d98
Do not clean the recv buffer
2021-11-14 16:47:40 +00:00
Sergey Lyubka
31059f6728
Add test.html
2021-11-14 14:31:51 +00:00
Sergey Lyubka
2000752b2c
Remove dead code
2021-11-11 15:15:47 +00:00
Sergey Lyubka
dd34830443
Update README
2021-11-11 15:11:57 +00:00
Sergey Lyubka
c58f4ee51b
Add symlinks
2021-11-11 14:21:52 +00:00
Sergey Lyubka
00f7e8cb2a
Support wildcards
2021-11-11 12:08:17 +00:00
Sergey Lyubka
439904e27f
Add signal handler
2021-11-11 10:35:41 +00:00
Sergey Lyubka
4d6590ece2
Add readme
2021-11-11 10:29:16 +00:00
Sergey Lyubka
9b0c4b970d
Add README.md
2021-11-11 08:26:31 +00:00
Sergey Lyubka
a80ce1b12a
Add signal handler
2021-11-11 07:36:25 +00:00
Sergey Lyubka
57dd74c180
Add reconnection logic
2021-11-10 12:57:02 +00:00
Sergey Lyubka
975db86306
Add READMEs
2021-11-05 13:02:36 +00:00
Sergey Lyubka
0bb017c1d5
Add examples/mqtt-client-aws-iot
2021-11-03 20:58:57 +00:00
Sergey Lyubka
c3d237e9c6
More verbose log
2021-11-02 22:43:23 +00:00
Sergey Lyubka
09d28f5570
Print a clarifying message at start
2021-11-02 16:53:57 +00:00
Sergey Lyubka
ba02937ec6
Squash warnings
2021-11-02 16:40:25 +00:00
Sergey Lyubka
423aaa492c
Fix #1394 - mg_mqtt_sub(). Add MG_EV_OPEN, too.
2021-11-01 16:20:00 +00:00
Sergey Lyubka
2016586475
Clearer client init
2021-11-01 13:29:44 +00:00
Sergey Lyubka
49c9be9159
Set MG_IO_SIZE -> 128
2021-10-27 19:20:52 +01:00
Sergey Lyubka
35f02fdaad
Use small IO buffer
2021-10-27 19:18:19 +01:00
Sergey Lyubka
6ac09966ba
Fix #1374 - fix ESP32 build
2021-10-22 22:06:10 +01:00
Sergey Lyubka
a84acf5b8b
Merge pull request #1385 from zudwalex/move_stm32_examples
...
Move STM32 examples to stm32 folder
2021-10-22 13:39:13 +01:00
Alex Alashkin
6742991469
Move STM32 examples to stm32 folder
2021-10-22 14:19:50 +03:00
Alex Alashkin
2430cc5aac
Add more NXP examples and move them to nxp folder
2021-10-22 14:04:15 +03:00
Alex Alashkin
655529f30b
Use mongoose.[ch] from parent repo
2021-10-06 13:15:12 +03:00
Alex Alashkin
5cdaa931f9
Add NXP examples
2021-10-04 12:54:15 +03:00
Sergey Lyubka
a204c80308
Update ca.pem links
2021-10-01 09:25:34 +01:00
Sergey Lyubka
7d620965e2
Update ca.pem: DST root CA has expired
2021-10-01 09:22:49 +01:00
Sergey Lyubka
78e1fdd1c9
Merge pull request #1365 from zudwalex/mimxrt1020_example
...
Add NXP MIMXRT1020 AzureRTOS example
2021-09-27 11:50:48 +01:00
Alex Alashkin
9ef5c7c667
Add NXP MIMXRT1020 AzureRTOS example
2021-09-27 11:12:15 +03:00
yermin
8f693b92a7
makes it more readable
...
Signed-off-by: yermin <yermin@buaa.edu.cn>
2021-09-24 11:30:21 +08:00
Sergey Lyubka
2b48e8b03a
Send suback
2021-09-18 20:56:56 +01:00
Sergey Lyubka
9b6b1a68f4
Add MQTT version check
2021-09-17 14:02:29 +01:00
Sergey Lyubka
dca08d32bd
Fix URL
2021-09-13 13:47:49 +01:00
Sergey Lyubka
e3589577ed
Update OpenSSL handshake error codepath
2021-08-29 16:54:24 +01:00
Sergey Lyubka
e653147119
Merge pull request #1344 from timgates42/bugfix_typo_priority
...
docs: fix simple typo, priorty -> priority
2021-08-28 08:37:26 +01:00
Sergey Lyubka
913e730ec2
mg_iobuf_delete -> mg_iobuf_del
2021-08-28 07:16:38 +01:00
Tim Gates
9f827feeaa
docs: fix simple typo, priorty -> priority
...
There is a small typo in examples/stm32-freertos-tcp/stm32f7/core_cm7.h.
Should read `priority` rather than `priorty`.
2021-08-28 07:46:08 +10:00
Sergey Lyubka
7ba6fda236
Add stm32-nucleo-h743z and stm32-nucleo-f429z
2021-08-26 11:40:47 +01:00
Sergey Lyubka
99b279d5e5
Add examples/stm32-nucleo-f746z
2021-08-23 10:38:11 +01:00
Sergey Lyubka
07568a8f06
Docs nits
2021-08-22 10:51:40 +01:00
Sergey Lyubka
fd5eb2d3f9
Refactor mg_mkpipe()
2021-08-11 19:17:04 +01:00
Sergey Lyubka
b7ce8213d7
Better multithreading support: remove mg_socketpair, add mg_mkpipe() and mg_rmpipe()
2021-08-07 17:22:47 +01:00
Sergey Lyubka
a36050ab4b
Fix #1326 - spelling errors
2021-08-02 00:23:01 +01:00
Sergey Lyubka
568484f079
Fix #920 - add MQTT over Websocket client example
2021-08-01 14:10:21 +01:00
Sergey Lyubka
3a46055e52
Better packed test
2021-07-30 13:19:20 +01:00
Sergey Lyubka
2af5d07467
Fix stm32 GA
2021-07-29 14:28:20 +01:00
Sergey Lyubka
c2176f969b
Implement FS virtualization
2021-07-29 14:21:20 +01:00
Sergey Lyubka
bdb747f9de
Fix mg_prefix test
2021-07-26 09:15:17 +01:00
Sergey Lyubka
299075c930
Add test for fopen_packed()
2021-07-26 09:05:34 +01:00
Sergey Lyubka
b0e0247b21
Add ascii to the packed data
2021-07-25 21:08:02 +01:00
Sergey Lyubka
35abd695cd
Add packed FS
2021-07-25 10:22:56 +01:00
Sergey Lyubka
7e1d4325ec
Fail examples target if any example fails
2021-07-24 08:45:51 +01:00
Sergey Lyubka
2a2c17a232
Remove MG_ENABLE_STDIO and cleanup
2021-07-24 03:44:00 +01:00
Sergey Lyubka
529faa1172
MG_ENABLE_FS -> MG_ENABLE_STDIO
2021-07-23 19:47:26 +01:00
Sergey Lyubka
8fc94e12af
Add enable_dirlist to mg_http_serve_opts
2021-07-20 17:22:41 +01:00
Ignacio Rodríguez
6ac6aa521c
The sanitiser pointed out this problem
...
And I believe it's right. Other-side-close should be done only for the 'A' (proxy-client-side) connection.
2021-07-20 00:04:05 -05:00
Sergey Lyubka
80fcba91c8
Fix #1297 - %p warning
2021-07-14 04:00:27 +01:00
Sergey Lyubka
f20ee1f305
Open HTTP and HTTPS ports
2021-07-13 14:40:52 +01:00
cpq
3deafaea7f
Extend mg_mqtt_{pub,sub} by adding qos and retain
2021-06-10 19:27:19 +01:00
cpq
7c0d126edc
Build with -DMG_ENABLE_FS=1
2021-05-19 08:10:38 +01:00
cpq
47e5e984df
stm32f7 example starts on real h/w, with plus-TCP driver
2021-05-17 17:36:57 +01:00
cpq
606cc1f538
Build w/semihosting support
2021-05-13 22:04:29 +01:00
cpq
2bb11888d5
Build w/semihosting support
2021-05-13 22:03:46 +01:00
cpq
09b1d6aa72
Running two blinkers
2021-05-13 15:05:09 +01:00
cpq
72f0489ec2
Using nucleo-f746zg. Moved 3party libs to test/. Using headers from ST
2021-05-13 14:56:14 +01:00
cpq
2b836504ab
rename
2021-05-12 08:44:16 +01:00
cpq
0de3f0d985
f1 build works
2021-05-12 08:43:34 +01:00
cpq
151e375091
FreeRTOS w/blink works
2021-05-11 20:44:14 +01:00
cpq
c44549bfa5
Blinky works
2021-05-11 18:05:03 +01:00
cpq
d6852f5e74
First stab
2021-05-11 09:12:06 +01:00
cpq
e9d122f231
Stricter checks for mg_url_*()
2021-03-24 15:49:35 +00:00
cpq
0ae5c61759
More comments
2021-03-23 14:02:24 +00:00
cpq
691460c5fc
Add linux target to http-server example
2021-03-22 11:30:48 +00:00
cpq
a1862986b8
Better docstring for file upload example
2021-03-18 12:23:03 +00:00
cpq
4deb95776f
Remove multipart example code
2021-03-18 11:59:23 +00:00
cpq
4dbb2da78f
Add form-upload example
2021-03-17 13:28:36 +00:00
cpq
bcb0874477
Add file upload code example
2021-03-15 09:36:27 +00:00
cpq
4528cc28ef
Add sizep param to mg_file_read()
2021-03-15 09:16:34 +00:00
cpq
6366c832b0
Add struct mg_http_serve_opts::extra_headers
2021-03-10 07:56:14 +00:00
cpq
1b5cc341a5
Add streaming client support, MG_EV_HTTP_CHUNK
2021-03-08 15:41:16 +00:00
cpq
51e3a1304b
Fix TLS build
2021-02-13 10:45:27 +00:00
cpq
457d76b049
Fix #1211 - adjust ESP32 example to serve FS
2021-02-03 02:13:05 +00:00
cpq
7eb998891e
Show served dir in the start message
2021-02-01 00:02:33 +00:00
cpq
d327ee9834
Improve SNI
2021-01-30 13:03:11 +00:00
cpq
31cf6f8969
https://localhost -> http://0.0.0.0
2021-01-29 13:18:34 +00:00
cpq
7200f079bf
Remove dead code
2021-01-25 14:43:56 +00:00
cpq
d155db81de
Add socks5 server example
2021-01-25 14:43:08 +00:00
cpq
7c2499fc06
-D -> -v
2021-01-25 10:35:14 +00:00
cpq
1aa605c620
desktop-server -> http-server
2021-01-25 10:09:48 +00:00
cpq
6ecb6c1500
Fix DNS timeout, add unit test
2021-01-21 10:00:18 +00:00
cpq
51bc5f70c5
Disable native socketpair by default, fix multithreaded win32 example
2021-01-21 09:12:49 +00:00
cpq
89784ab90a
Restore to a simple version
2021-01-19 14:21:50 +00:00
cpq
ae6fd6aa35
Add extra headers param to mg_ws_upgrade()
2021-01-16 22:48:43 +00:00
cpq
72d3a49352
Restore SO_EXCLUSIVEADDRUSE
2021-01-13 03:47:11 +00:00
cpq
87b62390b7
No static for linux
2021-01-13 03:10:42 +00:00
cpq
83c106a857
UI for Win32
2021-01-13 03:07:51 +00:00
cpq
596c70d3dc
Add config file processing
2021-01-12 15:18:19 +00:00
cpq
b7a79a556a
Add extra headers param to mg_http_serve_file
2021-01-07 12:48:20 +00:00
cpq
03ab9e4e0d
Update axios
2021-01-06 17:11:53 +00:00
cpq
e135743efa
Fix example build
2021-01-03 08:55:00 +00:00
cpq
2c1324dc0a
Remove -r option
2021-01-03 08:43:56 +00:00
cpq
c7e09bd7b4
Add SSI include file=, include virtual=
2021-01-02 17:57:51 +00:00
cpq
a882aab30e
Add captive dns server example
2020-12-28 05:25:29 +00:00
cpq
788b577d65
Add README
2020-12-27 01:32:58 +00:00
cpq
71a22adc06
Add ESP8266 example
2020-12-27 01:29:42 +00:00
cpq
49b8480bfb
Add http-reverse-proxy example
2020-12-25 04:32:56 +00:00
cpq
6bcd02bb1c
Enhance HTTP client example
2020-12-24 16:52:58 +00:00
cpq
1716af6c72
Add HTTP client code
2020-12-24 16:52:12 +00:00
cpq
c75eb24eb8
Add proxy client example
2020-12-22 21:01:14 +00:00
cpq
d7abd53062
Always send MG_EV_CONNECT on TCP connect
2020-12-18 15:13:19 +00:00
cpq
aede72fa37
Refactor HTTP client
2020-12-18 14:29:30 +00:00
cpq
99ed58ec4d
Better docstrings
2020-12-18 09:08:28 +00:00
cpq
04450ec659
Update http server example to showcase SSL
2020-12-18 09:01:14 +00:00
cpq
82a378e519
Add extra param to http_reply()
2020-12-17 22:47:55 +00:00
cpq
9f88f31f01
Add timer example
2020-12-17 11:44:30 +00:00
cpq
4bdea2b467
Add README to the esp32 example
2020-12-17 11:24:28 +00:00
cpq
9ecf42578c
Fix screenshot link
2020-12-16 10:54:47 +00:00
cpq
754fc25924
Add description & screenshots
2020-12-16 10:54:09 +00:00
cpq
8d45cf6972
Add mqtt-server example
2020-12-15 20:29:47 +00:00
cpq
fa8f62fb5d
Squash warnings under linux
2020-12-14 14:05:01 +00:00
cpq
b641fc6b79
Add esp32 example
2020-12-14 12:58:27 +00:00
cpq
54250f5fbf
Rename, use hyphen
2020-12-12 10:22:45 +00:00
cpq
f3f397f31e
Add MQTT client example
2020-12-12 10:03:19 +00:00
cpq
90686ee5c9
Add ws examples
2020-12-11 17:35:58 +00:00
cpq
763f4551d5
More log messages
2020-12-10 17:42:59 +00:00
cpq
42d7865e14
Pre-built desktop server
2020-12-10 17:39:40 +00:00
cpq
6c4b5efd98
Add restful and client example
2020-12-10 13:26:05 +00:00
cpq
f2fba1d200
7.0 refactor
2020-12-05 11:26:32 +00:00
Sergey Lyubka
000d24d31a
Add http proxy client example
...
PUBLISHED_FROM=443a0d3db63df1b78555a9fa4eff808bef3a9a01
2020-03-25 16:32:49 +00:00
Sergey Lyubka
464113c5ae
Sync mongoose changes
...
PUBLISHED_FROM=8b6ebf46728aca40f916dde88e372b4540ed6ea4
2019-12-19 11:12:57 +00:00
Deomid Ryabkov
1e9fabe1ca
Fix handling of WS handshake error response
...
Check response code, make sure it's 101.
Pass http_message to the client to keep it appraised.
This represents a slight change in the API -
in case of an error MG_EV_WEBSOCKET_HANDSHAKE_DONE will now be delivered where previosuly connection would just hang.
Clients that do not examine the argument may for a moment think handshake has succeeded but in fact connection will be closed immediately.
CL: mg: Fix handling of WS handshake error response
PUBLISHED_FROM=645a43d9e5bee216e54411f85827c9b974e9a7d1
2019-02-14 21:19:34 +00:00
Deomid Ryabkov
95a36b1759
Log file:line instead of function; add cs_log_set_file_level()
...
cs_log_set_filter() is removed in favor of cs_log_set_file_level() which
allows setting log verbosity of individual files and/or lines.
E.g.: `mg_=1,mjs=1,=4` - level for for everything except mjs and mongoose.
We use the fact that we are usually pretty careful with our file names and use prefixes consistently.
In mos, `debug.file_level` sets the option on boot and `Sys.SetDebug` is updated to parse `file_level` option to change it at runtime.
CL: Log file:line instead of function; add cs_log_set_file_level()
PUBLISHED_FROM=49f18d4d0d3dd224865129a4f8fe6cccd1d9bc12
2019-01-30 12:57:19 +00:00
Deomid Ryabkov
455cec67a5
CC3220: Enterprise auth support
...
CL: wifi: CC3220: Enterprise auth support
PUBLISHED_FROM=ce445eb5b740073c9a3f9811f1acd404ce134f2e
2018-12-18 18:19:21 +00:00
Dmitry Frank
b9b20c6494
Implement mg_http_parse_header2()
...
Which is a replacement of (deprecated) `mg_http_parse_header`, but,
similarly to `asprintf`, allocates a new buffer if the client-provided
one is not large enough.
Also use it throughout mongoose code, and thus some header-related
limitations are removed; in particular,
https://github.com/cesanta/mongoose/issues/813 is fixed.
CL: Mongoose Web Server: Deprecate `mg_http_parse_header()` and implement `mg_http_parse_header2()` instead, which allocates a new buffer if the client-provided one is not large enough (similarly to `asprintf`).
CL: Mongoose Web Server: Fix limitations of header value lengths, e.g. when parsing authentication headers such as nonce, etc.
PUBLISHED_FROM=c75b1bbbbdb294ea85075ce69b1368f115fdd1ef
2018-02-07 23:04:29 +00:00
Dmitry Frank
4afebdcb2b
Add UDP client example
...
CL: Mongoose Web Server: Add UDP client example
Resolves https://github.com/cesanta/mongoose/issues/886
PUBLISHED_FROM=fcce2f1de3a800147e9246ffa01c428c1b8f552b
2018-02-06 13:34:33 +00:00
Dmitry Frank
bd15ad4301
Improve err handling in pubsub example
...
PUBLISHED_FROM=7660e252e1ac84bf2245718c548fb00288ff4e47
2018-01-30 20:39:51 +00:00
Dmitry Frank
e5b3b8ad32
Ensure not to overflow buf in udp server example
...
PUBLISHED_FROM=413f5073b0fc267d66ce04d8d40e9e9d7abac94d
2018-01-30 20:39:50 +00:00
Julien Ammous
e116c48bef
Remove redundant initialization
...
CL: none
PUBLISHED_FROM=9d68cdc298c520798468b43a19c84251bd0c21b4
2018-01-30 19:39:08 +00:00
Julien Ammous
7d7bb3b388
Don't use user_data in mqtt server
...
Integrates https://github.com/cesanta/mongoose/pull/884
Closes https://github.com/cesanta/mongoose/issues/883
CL: Mongoose Web Server: Don't use user_data in mqtt server
PUBLISHED_FROM=7785784a766e0ba7514bbba604cde14e7bad3f73
2018-01-30 19:39:05 +00:00
Dmitry Frank
f084ad8008
Fix pubsub example
...
CL: Mongoose Web Server: Fix publish-subscribe example
PUBLISHED_FROM=04fdb66c1d4eb56798a5be2634f9f9bb2f18f288
2018-01-30 14:35:14 +00:00
Dmitry Frank
5d5badfcee
Fix memory leak in big_upload example
...
PUBLISHED_FROM=e6ccbd73b27985fbf9949adc3e07c90a75f75603
2018-01-30 12:51:15 +00:00
Sergey Lyubka
987bc1d580
Use 8k iobuf limit for aws
...
PUBLISHED_FROM=971951e1eeb82078b986cd6e25e52cfc1ccef286
2017-12-02 21:26:35 +00:00
Deomid Ryabkov
7942803a75
Fix MQTT SUBSCRIBE parsing
...
Make sure topic is properly NUL-terminated.
Ignore SUBSCRIBE requests with no topic expressions.
PUBLISHED_FROM=a00f39dda44fe63299e971a91a98f8ee57dd2a64
2017-10-30 15:34:22 +00:00
Бобби
8313896a85
Unbind things from v7
...
PUBLISHED_FROM=d20f138ae37c99a34cc29e7bfb327d7834404d93
2017-10-18 16:05:25 +00:00
Бобби
8193302162
Initial socks5 client & server implementation
...
PUBLISHED_FROM=05d3cca6223c963e7ae89dde3628fa8fad46e6bd
2017-10-18 14:05:13 +00:00
Deomid Ryabkov
0a93e301c9
CC3220: Exception handling, NWP init
...
Also make CC3200 use newer ARM compiler, generates slightly smaller code.
PUBLISHED_FROM=a0be49d7ea864a95886f7110887a59f6f11802d7
2017-08-29 21:49:53 +00:00
Our CI Bot
09e4254718
Add mqtt_over_websocket_server example
...
Fixed bug in websocket handshake:
now adding Sec-WebSocket-Protocol header in handshake response.
PUBLISHED_FROM=e4a71ff9dc4aeec63db40cb7f356dc5b25c1215a
2017-08-24 10:34:35 +00:00
Sergey Lyubka
0bb14abbdd
Nitpick for MQTT example
...
PUBLISHED_FROM=a0dd26c00b41363f1cc58c28f530fbdf272ed146
2017-07-14 10:52:37 +00:00
Deomid Ryabkov
e4309d472b
Annotate cs_log_printf with format attribute
...
This adds compile-time checks for format strings.
Fix issues exposed by this.
PUBLISHED_FROM=b9f820d8ad44fce9186dfdad4fe109fafa5371ce
2017-05-30 12:05:34 +00:00
Sergey Lyubka
a0527a7f0e
Fix esp8266 rtos example build
...
PUBLISHED_FROM=80055394237617605c57a07ac29c43d5197cbf5c
2017-05-05 10:25:41 +00:00
Sergey Lyubka
c90cffa688
Fix docker invocation
...
PUBLISHED_FROM=064b5e508017b0115239fc880f21ca08b9422a25
2017-05-05 09:55:12 +00:00
Deomid Ryabkov
0ea3cdd228
Implement sending stdout and stderr to MQTT topics
...
Configured via `debug.std{out,err}_topic`
PUBLISHED_FROM=66c581c38c5039aa9ecc406f8aac0b7e3c6541fc
2017-05-02 21:23:58 +00:00
Ruslan Valiullin
ac857d18db
Add mg multithreaded example
...
PUBLISHED_FROM=8a3424ba6260b0351d7c06270dc141d804ae7f77
2017-05-02 15:55:53 +00:00
Ruslan Valiullin
8354319e72
websocket_chat added MG_EV_HTTP_REQUEST
...
PUBLISHED_FROM=6f5e1b4a97ada21025f892d3348808bffb469dfa
2017-04-14 12:57:30 +00:00
Sergey Lyubka
82761bb875
Bobify format targets
...
PUBLISHED_FROM=2c1d372e4db856e23266c29195c07968abc2ec81
2017-04-10 22:50:30 +00:00
Alexander Alashkin
511c9a6d4a
Add simple mongoose/esp32 example (w/out mOS)
...
PUBLISHED_FROM=0e407a2fb328107540d753123fe027f43860d0ef
2017-03-29 13:53:25 +00:00
Alexander Alashkin
2fb145d39d
Fix DISABLE_MD5 and DISABLE_SHA1 naming
...
PUBLISHED_FROM=2babde0d0c6add14aa500f4bf1c833715d979c6c
2017-03-21 10:24:11 +00:00
Alexander Alashkin
ec752645ee
Remove ajax_upload
...
PUBLISHED_FROM=599ccd99e7bf422cac5e8b1f5ccebe3cac2780e8
2017-03-21 07:35:52 +00:00
Sergey Lyubka
ceb2f1da41
Update upload example
...
PUBLISHED_FROM=a28c1da3f0dd597792439246313ca39984ab7536
2017-03-20 17:23:38 +00:00
Alexander Alashkin
aab857a66e
Add ajax_upload to big_upload
...
PUBLISHED_FROM=7c919ba3a2afa74cec9947e78299b4bb7a64b4bc
2017-03-20 16:55:31 +00:00
Alexander Alashkin
066be0fe30
Add ajax_upload example
...
PUBLISHED_FROM=c5691d4321fff2e03f689b0195abd1ec6a188418
2017-03-20 10:51:24 +00:00
Dmitry Frank
bf7dd7ac63
Add separate userdata for each http endpoint hdlr
...
PUBLISHED_FROM=29a204c2c7f35724b6f1e8435edb94869da2362c
2017-03-15 17:43:19 +00:00
Sergey Lyubka
17cfecc5c3
Mongoose examples fixes
...
PUBLISHED_FROM=b47a5b6987ee8d9e7c9bae2bd4d2943d2e7f76a9
2017-02-20 10:05:57 +00:00
Deomid Ryabkov
ebdd18769b
Add core dump and exception handling to RTOS port
...
PUBLISHED_FROM=dba64da598b45469c7fd458865c75d3eb6853c2d
2017-02-19 10:05:31 +00:00
Deomid Ryabkov
f974fddd2a
Fix ESP8266_RTOS example; add mos flashing
...
PUBLISHED_FROM=d87814d40f0acdc7a96fbd132c2157ccb499c7c6
2017-02-17 14:51:49 +00:00
Deomid Ryabkov
66a96410d4
ESP8266: Add RTOS SDK port (MGOS_ESP8266_RTOS=1)
...
PUBLISHED_FROM=ca5332e63700274ed9aeea9d9d1802e89fa788fa
2017-02-16 11:05:34 +00:00
Deomid Ryabkov
d6d956b9d8
Do not prefix successfulresponse with "Error: "
...
It's confusing
PUBLISHED_FROM=9158ccd920dabf92963e76aa96a988753b9c427d
2017-02-13 15:05:11 +00:00
Deomid Ryabkov
383b2a48c5
Update logo in connected_device examples
...
PUBLISHED_FROM=6319df7f49dc921ddb672ba9789dfbbff8c25d9f
2017-02-13 14:05:04 +00:00
Dmitry Frank
bf505bb68d
Update readme of nrf examples
...
And also fix `flash` target for nrf51
PUBLISHED_FROM=decc6242380eb7070bfbcb26c57780e756588cc3
2017-02-08 08:25:32 +00:00
Sergey Lyubka
1ae908f6d5
Add mqtt codec
...
PUBLISHED_FROM=f780559966a6a955603e05aeaa5dde8455bff991
2017-02-06 17:39:02 +00:00
Alexander Alashkin
eaef5bd133
Revert "Stop publish examples to mongoose repo"
...
This reverts commit 1a17e17c462bdd4e1d26d8742f8b7087273e04c2.
PUBLISHED_FROM=80028de308c9a021955d1425d2bfee8feb85f193
2017-02-06 14:08:59 +00:00
Alexander Alashkin
551f393da7
Remove examples
2017-02-03 12:17:07 +02:00
Alexander Alashkin
707b9ed2d6
Remove mg_enable_multithreading. Close cesanta/dev#6511
...
PUBLISHED_FROM=7864ffa26cb553f5d4a93248f67c288327ec23b0
2017-01-30 13:55:49 +00:00
Alexander Alashkin
807e4ea6ec
Fix STM32F4_CC3100 Mongoose example compilation
...
PUBLISHED_FROM=7a67a67d2f0007e241e4ccb57bc24a43ba20bfde
2017-01-30 12:09:43 +00:00
Alexander Alashkin
507e8bfac9
Drop Arduino support
...
PUBLISHED_FROM=85768c0d2536d9c31885a5127710b9756e3229a3
2017-01-30 09:39:15 +00:00
Dmitry Frank
4bdec5c1c1
Rename mongoose-iot to mongoose-os
...
URLs like mongoose-iot.com are left intact
PUBLISHED_FROM=b8502b163c26a2cb54598db57ba094333fe7cf54
2017-01-09 17:03:38 +00:00
Sergey Lyubka
a447ae5eab
MQTT parsing fix
...
PUBLISHED_FROM=41f43cb0e707259740de3346308f746c2a3778fd
2016-12-13 10:37:06 +00:00
Deomid Ryabkov
39ea91cfc2
Test building with MG_ENABLE_FILESYSTEM=0
...
Fix errors so it builds.
PUBLISHED_FROM=db9fc9ef997d6b1847117e8db9aefdc7e540f4cc
2016-12-09 23:35:54 +00:00
Alexander Alashkin
55963d0c9a
Fix typo in platforms_esp
...
PUBLISHED_FROM=b17ef5bc8ec801fca91c89af5f97767a55911952
2016-11-24 13:21:09 +00:00
Alexander Alashkin
9e517fde00
Implement SNTP client
...
PUBLISHED_FROM=ac54bcbc81a9ee688e8b90e261172be76a9fbacd
2016-11-24 09:51:58 +00:00
Marko Mikulicic
39b0b8e2fd
Fix clang formatting
...
PUBLISHED_FROM=ea64670e42ae58bbe26abee5d928f2afcd83bd46
2016-11-23 08:06:09 +00:00
Dmitry Frank
0ceee1dc05
Rename mg_
-> miot_
under fw
...
`MG_ENABLE_...` macros are not yet renamed because it involves some
logic change: e.g. instead of defining `MG_ENABLE_MQTT`, one should
define `MIOT_ENABLE_MQTT`, which should imply `MG_ENABLE_MQTT` as well.
Macro refactoring is going to be done in another PR.
PUBLISHED_FROM=f8b66d5772846126b94223a729a6bd87897f8de6
2016-11-15 14:36:10 +00:00