Evelyn
efe53b57e4
Update mg_printf_http_chunk.md
2016-07-22 16:13:38 +01:00
Evelyn
e2330944d4
Update mg_send_http_chunk.md
2016-07-22 16:13:20 +01:00
Evelyn
1c18906db7
Update mg_printf_websocket_frame.md
2016-07-22 16:12:07 +01:00
Evelyn
873ceb48bd
Update mg_send_websocket_framev.md
2016-07-22 16:11:32 +01:00
Evelyn
a48b955d89
Update mg_send_websocket_frame.md
2016-07-22 16:11:11 +01:00
Evelyn
b92fae2bfb
Update mg_connect_ws_opt.md
2016-07-22 16:10:30 +01:00
Evelyn
156be17191
Update mg_connect_ws_opt.md
2016-07-22 16:10:12 +01:00
Evelyn
92290cfe81
Update mg_connect_ws.md
2016-07-22 16:09:47 +01:00
Evelyn
29725c97f1
Update mg_send_websocket_handshake2.md
2016-07-22 16:08:59 +01:00
Evelyn
56b9cd14cb
Update mg_send_websocket_handshake.md
2016-07-22 16:07:44 +01:00
Evelyn
3550cc8f48
Update mg_set_protocol_http_websocket.md
2016-07-22 16:03:38 +01:00
Deomid Ryabkov
6a3d01ee6b
Depend on v7.c properly
...
PUBLISHED_FROM=cf49d0d345e4a7607c535f9578b8ed4160f2fccd
2016-07-22 14:31:13 +00:00
Evelyn
27986213aa
Update mg_check_ip_acl.md
2016-07-22 15:23:11 +01:00
Evelyn
a2d07ef983
Update mg_check_ip_acl.md
2016-07-22 15:13:59 +01:00
Evelyn
3cf4e32d9f
Update mg_event_handler_t.md
2016-07-22 15:06:40 +01:00
Evelyn
a54584b716
Update mg_set_timer.md
2016-07-22 15:06:00 +01:00
Evelyn
51907e2642
Update mg_enable_javascript.md
2016-07-22 15:04:58 +01:00
Evelyn
5dd9d37ef2
Update mg_enable_multithreading.md
2016-07-22 15:04:01 +01:00
Evelyn
f900854e0d
Update mg_socketpair.md
2016-07-22 14:54:30 +01:00
Evelyn
d20e94f763
Update mg_printf.md
2016-07-22 14:53:54 +01:00
Evelyn
58de2ad2d7
Update mg_send.md
2016-07-22 14:53:28 +01:00
Evelyn
f30c7b75d0
Update mg_set_ssl.md
2016-07-22 14:52:31 +01:00
Evelyn
c5b8e55e12
Update mg_connect_opt.md
2016-07-22 14:48:10 +01:00
Evelyn
559874fce7
Update mg_connect.md
2016-07-22 14:41:40 +01:00
Evelyn
1875653b34
Update mg_bind_opt.md
2016-07-22 14:41:23 +01:00
Evelyn
6df770e72d
Update mg_bind.md
2016-07-22 14:39:26 +01:00
Evelyn
51d415c8dd
Update mg_add_sock_opt.md
2016-07-22 14:38:44 +01:00
Evelyn
63bf428c34
Update mg_add_sock.md
2016-07-22 14:37:21 +01:00
Evelyn
a5d2772082
Update mg_next.md
2016-07-22 14:36:53 +01:00
Evelyn
43c317ef4c
Update mg_broadcast.md
2016-07-22 14:36:13 +01:00
Evelyn
01ffdb69d0
Update mg_mgr_poll.md
2016-07-22 14:35:08 +01:00
Evelyn
a78f346ac6
Update mg_mgr_free.md
2016-07-22 14:34:04 +01:00
Evelyn
4ae88c859e
Update mg_mgr_init.md
2016-07-22 14:33:30 +01:00
Marko Mikulicic
e8a97f12d7
Skip C build if not changed - step 1
...
Note: this is only the first step; the C sources won't be built until
the second step is done.
The actual build takes about 1.3s on cloud2 which still runs the docker
containers and image layers on the very slow spinning disk. cloud3 has
docker mounted on the SSD disk; measured speedups of 20-30%
PUBLISHED_FROM=c5acef1d64ebc8dca8ed31f51685c8b3090c5767
2016-07-22 12:51:18 +00:00
Evelyn
06aabdefbe
Update mg_mgr_init.md
2016-07-22 13:48:35 +01:00
Deomid Ryabkov
15643f8e67
Use rand() instead of random(), it's more standard
...
Remove the random() stubs from the codebase
PUBLISHED_FROM=0f56ec7dffa0af1f5061a17d8801239d6f0e32a5
2016-07-22 11:06:16 +00:00
Deomid Ryabkov
b987df1974
Refactor sys_config and ro_vars
...
Use the same config mechanism for ro_vars as for sys_config, get rid of a bunch of custom code.
PUBLISHED_FROM=d2be76cb97090669dd6a21e95d0ba821eaa1a313
2016-07-21 16:35:59 +00:00
Deomid Ryabkov
cbe63d43df
Prevent repeated invocation of Clubby handler
...
PUBLISHED_FROM=de348f944de60d116d9d1f5d18e920991c811fa8
2016-07-21 15:22:36 +00:00
Marko Mikulicic
e91a7c9599
Reamalgam after .h edits
...
PUBLISHED_FROM=da1faa9b46cd0ff22dcba6d324b5847c4a0d42d8
2016-07-21 15:06:41 +00:00
Sergey Lyubka
3054952a5e
Add %T to the API ref
...
PUBLISHED_FROM=f6679ea960b3aa0bc9142515548835ee0f78af67
2016-07-21 14:36:12 +00:00
Artem Bulavin
3244df9cd1
Added UI response on authentication, fixed non-clickable buttons
...
PUBLISHED_FROM=a4666982707fcc96cfe6e75903cab9ac225351e4
2016-07-21 14:07:13 +00:00
Dmitry Frank
1f75081f6e
Add build option V7_NO_COMPILER
...
Which disables tokenizer, parser, AST, and compiler. On ESP8266, it
frees 21K of ROM.
PUBLISHED_FROM=ff4c53ace6b9056c595b9e12ef3453330d659775
2016-07-21 13:51:54 +00:00
Marko Mikulicic
2c83a50a8a
Document %.*Q
...
PUBLISHED_FROM=5dc567f8978d5414835f7a2338a78ae9eb683f55
2016-07-21 13:38:48 +00:00
Deomid Ryabkov
1c80fc28ee
Destroy net interface before invoking MG_EV_CLOSE
...
So that socket/connection/whatever is really closed by the time user code is run.
Speed up test_http_endpoints by using appropriate wait conditions.
PUBLISHED_FROM=5fc8a772cc2a9c3b8c9dbddde9f99b41ce4d334c
2016-07-20 14:52:12 +00:00
Sergey Lyubka
810eab9a58
Add SSI doc string
...
PUBLISHED_FROM=73540bf103672916eae35959d5e992a3616a6604
2016-07-20 11:07:37 +00:00
Deomid Ryabkov
256aa0296d
Fix compilation for non-MGIOT projects
...
That don't have CONSOLE_UART defined
PUBLISHED_FROM=7930bb639baf81cff8ce53c6f81e9739668aae08
2016-07-15 13:34:59 +00:00
Deomid Ryabkov
2eb506c5e0
Make console output in SLFS adapter overrideable
...
PUBLISHED_FROM=455184fbe730cf62340046c73ffd8ae4b0e0a2c1
2016-07-15 13:19:51 +00:00
Deomid Ryabkov
9f78a2902b
Fix SSL stuff
...
Do not use CA bundle on CC3200, it doesn't work.
Make ssl_ca_cert = "*" mean "no verification" and make sure
SSL is enabled on the connection when it's required, even w/o verification.
PUBLISHED_FROM=c8710a5d24ecfe174ef45b7f81c114d41faf5c12
2016-07-14 13:19:55 +00:00
Deomid Ryabkov
613ae4ee34
Fix led toggline in CC3200 sensor demo
...
PUBLISHED_FROM=10369c7903f3c9433e8c9f6f9725f014aed5768d
2016-07-13 20:04:48 +00:00
Deomid Ryabkov
ab208b71c4
Do not define rename() when compiling with TI libc
...
PUBLISHED_FROM=e9878fc5d55b0b2da854573a7a84e8e14e2f301d
2016-07-13 19:49:47 +00:00
Alexander Alashkin
68dd8d277d
Get rid of ubjson
...
PUBLISHED_FROM=e6f1dca95ec7ed3795adf493cca9cdcdc07381f5
2016-07-12 20:49:59 +00:00
Deomid Ryabkov
36a1927915
Mongoose 6.5
...
PUBLISHED_FROM=d151a5a0bf34b135a7a2c879f5a6bd5676af275a
6.5
2016-07-12 13:20:04 +00:00
Deomid Ryabkov
68437de416
Fix handling of socket write errors
...
PUBLISHED_FROM=7264edfb3b8e4e37f15f2993f479dfe0a9550b1d
2016-07-12 11:04:59 +00:00
Deomid Ryabkov
459cd1b095
Properly override rename on Newlib
...
Newlib implements rename as _link and _unlink, not _rename.
There is no _link on either SLFS or SPIFFS, so override rename directly.
PUBLISHED_FROM=ebb54664f8a3c8664ecab1fac021bef286a0e230
2016-07-11 16:49:56 +00:00
rojer
6f7f774080
Merge pull request #678 from tbfly/master
...
!): Fix for compile error in Android.
2016-07-08 16:51:53 +01:00
Deomid Ryabkov
fc0bf1953a
Fix and improve sorting on Mongoose index pages
...
Remember sorting settings in url fragment, reverse order on repeated
header click.
PUBLISHED_FROM=faa033eddc86d0aafc12a86aea4145646ea2c89c
2016-07-07 15:49:59 +00:00
Deomid Ryabkov
c907e6c5fb
Commonize mg_str
...
PUBLISHED_FROM=0e6a1c1a2356c1e12580e498c64ba7be367f601c
2016-07-06 23:49:57 +00:00
Deomid Ryabkov
29b3950ee7
Handle SimpleLink restarts in Mongoose
...
SimpleLink restart invalidates all sockets.
Listeners are restarted, outgoing connections are closed.
PUBLISHED_FROM=15567dfb822bffbd44d39ba0e69a7ac64fd7a1c8
2016-07-06 13:56:50 +00:00
Deomid Ryabkov
0e0c6b8357
Fix off-by one
...
cesanta/mongoose#677
PUBLISHED_FROM=4b62bdefac08fa3bedf511dc4d6f7463af3325fc
2016-07-06 13:56:48 +00:00
Sergey Lyubka
6f17f3e2c2
Add timers example to mongoose
...
PUBLISHED_FROM=1599cf1d06c8f177918cbcf574c28c9e93d56d39
2016-07-06 13:56:47 +00:00
Lu ZhiHe
df107a272e
!): Fix for compile error in Android.
2016-07-06 14:50:08 +08:00
Sergey Lyubka
b7a0748312
Ditch JSON-RPC from mongoose
...
PUBLISHED_FROM=89b978c02be2f10eb930ff13673d45249fd67763
2016-07-01 11:35:18 +00:00
Alexander Alashkin
421b420a0c
Fix mp+keepalive combination
...
PUBLISHED_FROM=dbfcfa91ad85d6447726d0d7e9fe15709f4c4646
2016-06-29 23:12:25 +03:00
Sergey Lyubka
a478dc5935
Remove old mongoose logo
...
PUBLISHED_FROM=2dd69a5db6ca56215726b563e1551c683f21a768
2016-06-28 16:05:04 +00:00
Deomid Ryabkov
4d65cb1c0f
Make Mongoose's SHA1 algo pluggable
...
PUBLISHED_FROM=bdaeed6628ffb544e31d7fd59475f3a2e78c2967
2016-06-28 10:05:31 +00:00
Deomid Ryabkov
ced823cd95
Add a radio button to teh settins_panel example
...
PUBLISHED_FROM=2daba7380508df24d909f922c5009286b4d8e7cf
2016-06-28 09:27:44 +00:00
Deomid Ryabkov
79325bd219
Lower verbosity of a message
...
PUBLISHED_FROM=3b4cbc497c4a0eee2d46f561c0717415ca85c242
2016-06-27 10:50:32 +00:00
Deomid Ryabkov
5a19135c35
Ignore SL_ENOPROTOOPT w/ DOMAIN_NAME_VERIFICATION
...
Domain name verification feature was added in NWP service pack
(reported version: 2.6.0.5). Older versions do not support it.
There's not much we can do about it, so we just ignore the error.
PUBLISHED_FROM=9495250de1945aae4f2bdf7dddcd7bf1248e24c2
2016-06-24 13:35:33 +00:00
Deomid Ryabkov
290e5f83d4
Switch to TI compiler + UMM malloc for CC3200
...
Frees up ~19KB RAM:
Before:
Code size: 210616
RAM at startup: 48636 total, 34472 free
RAM after sys init: 15024 free
After:
Code size: 195784
RAM at startup: 65096 total, 52980 free
RAM after sys init: 34116 free
PUBLISHED_FROM=32a9cb8fb6d75cf428bc3548dd5684ce6e52c508
2016-06-22 19:05:07 +00:00
Deomid Ryabkov
b535cb319a
Ensure asprintf'd string is NUL-terminated
...
PUBLISHED_FROM=b4062780d22be37acdbecd86e5951245e2908ff8
2016-06-22 16:20:15 +00:00
Deomid Ryabkov
e3a9c6afb4
Mass-fix header guards
...
PUBLISHED_FROM=7e5fc4da88069a6193d911660f522b43ed1a5d40
2016-06-20 10:50:01 +00:00
rojer
3f1a33e4b4
Handle errors better in listening code for CC3200
...
PUBLISHED_FROM=9d4ab680fa672690735b827f56e135330f72beed
2016-06-15 13:35:00 +00:00
rojer
441eaa7f6c
Handle errors better in listening code for CC3200
...
PUBLISHED_FROM=9d4ab680fa672690735b827f56e135330f72beed
2016-06-15 14:32:44 +01:00
rojer
632153a1b4
Fix FNC CLI logging
...
PUBLISHED_FROM=171b25e15cad2c87eb40a8123fe8ea07e34c41f7
2016-06-15 14:32:36 +01:00
Sergey Lyubka
f9d0ad9dc3
Do not leak in mg_connect_ws_opt()
...
PUBLISHED_FROM=e6de3b3747a1cd79c3930c2640fadc8356ffed61
2016-06-15 12:05:00 +00:00
rojer
a67323fc12
Change main code image filename in CC3200 bundles
...
/sys/mcuimg.bin is just another file on SLFS, no reason to give it
special treatment. Preserve backward compatibility with old bundles:
translate sys_mcuimg.bin -> /sys/mcuimg.bin
PUBLISHED_FROM=be89a3d9785046f09279fef9e2bb6604eeaa576e
2016-06-13 15:04:54 +00:00
rojer
1daa5e69b1
Add timestamp to LB log
...
PUBLISHED_FROM=61b87fcee909241d5bdf2ba7407003c0c3cfbd72
2016-06-13 12:34:30 +00:00
Sergey Lyubka
1718490982
Simplify Contributions section in readmes
...
PUBLISHED_FROM=3a14579dabba4088e54350945dc17fd6ebb0d700
2016-06-10 12:34:41 +00:00
rojer
1d4f97bb4c
SimpleLink net_if impl w/ async support; MG_F_SSL
...
SimpleLink sockets are suffciently different from BSD that all the
ifdefs have become too messy to warrant a separate net_if
implementation. As part of this we also implement proper async connect
support.
Added MG_F_SSL to identify SSL-enabled connections in a generic way,
since SSL state can be different depending on the implementation.
PUBLISHED_FROM=9cdb8c880b90683e4a26b972cf439d47d6f60917
2016-06-09 17:49:53 +00:00
rojer
183fc7ced9
clang-format *ALL* the things!
...
PUBLISHED_FROM=faf0beb7545eb426c941fc366b6f87667723eb4c
2016-06-09 11:19:57 +00:00
rojer
dcf1cedec9
SimpleLink SSL support; split cert and key opts
...
SL requires cert and key to be separate files in DER format.
Date verification is disabled for now.
PUBLISHED_FROM=7d76150ed356140728a1e5fd82d8a0456347b7dc
2016-06-09 11:04:56 +00:00
Marko Mikulicic
845e608280
Clean docs while publishing
...
PUBLISHED_FROM=274a19d6988002fb029e614bffea4083002324a1
2016-06-07 20:40:26 +00:00
rojer
d6ecfe7f24
Make error message more clear
...
PUBLISHED_FROM=f8e052f1a256f671de133135901b509d39608a82
2016-06-07 20:40:25 +00:00
rojer
06b6bf6185
Propagate nc->err to err on CC3200
...
PUBLISHED_FROM=db7254b5bf25961a700cbce954ef02d41b176500
2016-06-07 16:43:24 +02:00
rojer
04a38b446f
Fix compilation with MG_DISABLE_HTTP_WEBSOCKET
...
Make restful_server and netcat examples compilation tests:
- netcat doesn't use HTTP, compile it with MG_DISABLE_HTTP
- restful_server doesn't use websocket, compile it with
MG_DISABLE_HTTP_WEBSOCKET
h/t @labourcier, cesanta/mongoose#665
PUBLISHED_FROM=4494ac3cbd81e8314beb557ab301b4b44c4afb89
2016-06-07 16:43:24 +02:00
Deomid Ryabkov
dfde5785a6
Use fw_meta script from the build image
...
PUBLISHED_FROM=996721b6d28ee25fcfcb514d716552c4afa238e1
2016-06-02 22:28:48 +01:00
Deomid Ryabkov
1a61455eef
Magic numbers are magic
...
PUBLISHED_FROM=cec68bab53fc81b4085b81fba0c52e0c42b09f0f
2016-05-31 15:36:25 +01:00
Sergey Lyubka
9f2ecb0144
Minor rephrasing in Mongoose overview doc
...
PUBLISHED_FROM=1562c629ce08004a5243a61eed79e1c3161f1268
2016-05-30 11:17:41 +01:00
Sergey Lyubka
3265060dc8
Add Mongoose overview doc section
...
PUBLISHED_FROM=9fb2260cd76ae30b51db02053f4d2debf4cdf900
2016-05-30 11:17:40 +01:00
Alexander Alashkin
58b8acd68a
Check malloc results, Contribute to cesanta/dev#3726
...
PUBLISHED_FROM=309be4a56754250406dd48f1abd30b68776f5c7e
2016-05-28 19:06:09 +01:00
Sergey Lyubka
3ec09ceedf
Reference media files in doc directly
...
PUBLISHED_FROM=da22d5ea0aa366d7cb9bba838f8e173ae0178f5e
2016-05-28 19:00:05 +01:00
Sergey Lyubka
1ce4aa81ee
Simplify doc generation infra
...
PUBLISHED_FROM=80e77fda1c358294f251ca77d3dd64e8ca9160e5
2016-05-28 19:00:04 +01:00
Dmitry Frank
177e829f4b
Add v7 arg to _mk_ and _get_ functions
...
`v7_mk_undefined()` and `v7_mk_null()` are left unchanged, but marked
deprecated, and `V7_UNDEFINED` and `V7_NULL` are public now.
Xtensa code size with instrumentation: 590400 -> 590432, i.e. 32 bytes.
Xtensa code size without instrumentation: 530848 -> 531760, i.e. 912
bytes.
As objdump reveals, inside v7.c, `v7_mk_number` and others are inlined,
so the extra v7 argument is eliminated; outside of v7.c it's obviously
not inlined.
----
Also, v7_get_int() is added, which currently just casts stored double
value to int
PUBLISHED_FROM=e984b7308faf2380b3de388f238e0fae0aea545d
2016-05-28 18:59:27 +01:00
Marko Mikulicic
b5b672ec89
Implement MQTT connect username/password
...
PUBLISHED_FROM=be604dc6b3650c78daaa02ea4db8cd067069b5e1
2016-05-18 12:07:20 +03:00
Deomid Ryabkov
d41419c8d3
Update the CC3200 build image
...
* Add TI compiler
* Remove cc3200prog, we don't use it
* Update to Xenial (new Ubuntu stable release).
It has ARM toolchain in the repos too, which is nice (no more PPA).
PUBLISHED_FROM=57d6650b438c5665023346abefbc953263e3f87b
2016-05-16 13:57:14 +03:00
Deomid Ryabkov
5e4d9dc17a
Restore REMOTE_ADDR and SERVER_PORT CGI env vars
...
cesanta/mongoose#573
PUBLISHED_FROM=687722f0dbc3c49e6691e01e0d0b1ab2d181bd2f
2016-05-16 13:57:14 +03:00
Sergey Lyubka
4ac688e560
Make mg_http_check_digest_auth() public
...
PUBLISHED_FROM=f00b94cabc2a89d27d5bc78d68d67db0930811b4
2016-05-16 13:57:13 +03:00
Deomid Ryabkov
5d0a5cfe72
Add CPP guards to net_if.h
...
cesanta/mongoose#653
PUBLISHED_FROM=a676dbce6d04b78ca316a4601e9cbb676ecc88d2
2016-05-15 22:07:14 +03:00
Dmitry Frank
d4b81bb911
Refactor v7_to_number -> v7_get_double and others
...
We wanted to avoid `to` since it implies some kind of conversion, but
these functions merely return underlying C entity.
Public API changes:
- `v7_to_number()` -> `v7_get_double()`
- `v7_to_boolean()` -> `v7_get_bool()`
- `v7_to_cstring()` -> `v7_get_cstring()`
- `v7_get_string_data()` -> `v7_get_string()`
- `v7_to_foreign()` -> `v7_get_ptr()`
Private API changes:
- `v7_to_pointer()` -> `get_ptr()`
- `v7_to_generic_object()` -> `get_generic_object_struct()`
- `v7_to_object()` -> `get_object_struct()`
- `to_js_function()` -> `get_js_function_struct()`
- `to_cfunction()` -> `get_cfunction_ptr()`
PUBLISHED_FROM=036ac18d442c1128106292ad3e7a818b177eec6a
2016-05-15 22:07:13 +03:00
Dmitry Frank
23122b327c
Remove old docs, rename docs_new to docs
...
It would be probably good idea to also remove tools/docgen.py and
asciidoc.mk, but asciidoc.mk is still mentioned under `cloud/doc`, which
may contain some useful info which we'll need at least to review before
removing.
PUBLISHED_FROM=faf454d4c52a2f07ea8ac084cf0bd11a0c9c9b3b
2016-05-15 22:07:04 +03:00