Kedar Sovani
1c0543fb17
lwip: Change socket API macros to static-inline
2017-11-29 11:42:14 +05:30
Chen Wu
4b3997cfbb
aws_iot: fix aws_iot examples without NVS initialization
...
WiFi used to initialise nvs automatically, but it doesn't now.
see more info: https://github.com/espressif/esp-idf/issues/624
Closes #624
2017-11-22 13:02:55 +08:00
Ivan Grokhotkov
6e1453e864
Merge branch 'feature/bot' into 'master'
...
CI: support customize test with @bot
See merge request !1502
2017-11-21 18:43:56 +08:00
He Yin Ling
879160de8c
test: collect example https_request binary size
2017-11-16 17:48:30 +08:00
Ivan Grokhotkov
c6d25dd9cc
Merge branch 'features/http2_demo' into 'master'
...
HTTP2 Client Demo
See merge request !1475
2017-11-15 14:51:51 +08:00
zhangjunhao
6a02a58347
fix(tw16355): examples/protocols/coap_client(server)
...
fix coap example can not work properly
2017-11-15 11:58:19 +08:00
Kedar Sovani
3ace8416b5
[examples] Create HTTP2 example with http2.golang.org
...
Intention is to partition the demo into multiple files, so that the
main program is quite easy to follow.
1. connectlib.c: For any URL parsing and TCP connection related stuff
2. sh2lib.c: Convenience functions for HTTP2+TLS. The goal here is to
expose a simpler API than nghttp2. If most usecases end up being
served with this library, it could potentially be moved into a separate
component
2017-11-06 09:43:03 +05:30
He Yin Ling
4cb52e0a3d
test: add test for https_request
2017-10-31 17:42:20 +08:00
Angus Gratton
2cc8c91ad8
lwip: Remove undocumented CONFIG_MDNS macro flag
...
All options that were enabled via CONFIG_MDNS are now in menuconfig, with
the default values set the same as with CONFIG_MDNS enabled (meaning existing
projects that were using CONFIG_MDNS do not need to change).
2017-10-02 10:50:27 +11:00
Angus Gratton
61d2069e1c
example: Add UDP multicast example
2017-10-02 10:50:27 +11:00
Chris Morgan
76db44e8ce
openssl_client, openssl_server example: Fix misspelling of PRIORITY in OPENSSL_EXAMPLE_TASK_PRIORITY
...
Merges https://github.com/espressif/esp-idf/pull/929
2017-09-20 12:09:01 +10:00
krzychb
4079886704
Added socket receiving timeout, ref. TW#14353 / GitHub issue #844
2017-09-11 05:15:39 +02:00
Angus Gratton
c503a01388
mbedtls: Rename net to net_sockets (in line with 2.4.0 API change)
2017-09-07 18:02:39 +10:00
krzychb
672390c458
Mass replacement of http with https urls, fixed broken urls
2017-09-06 08:16:01 +02:00
Dong Heng
d523a5181b
example/openssl_client: Fix http string "printf" error without end character '\0'
2017-09-04 13:29:19 +08:00
Ivan Grokhotkov
d2acf1ce77
sleep: add light sleep, factor out APIs common for deep/light sleep
2017-09-01 10:36:14 +08:00
Chris Morgan
105f9f466e
openssl_server: Rename openssl_client_init() to openssl_server_init() to match usage
...
Merges https://github.com/espressif/esp-idf/pull/928
2017-08-30 17:55:00 +10:00
Angus Gratton
ea171a651c
https example: Use correct pattern around mbedtls_ssl_write()
...
mbedtls_ssl_write() will always write the request here in one go,
but it's good to have correct patterns in examples.
2017-08-18 17:15:11 +10:00
Angus Gratton
f4404ae220
https example: Clean up output, print cipher suite & request count
2017-08-18 17:15:11 +10:00
Ivan Grokhotkov
4c01929a1e
examples: fix timezone for China in SNTP example
...
Daylight saving time isn’t observed in China.
Fixes https://github.com/espressif/esp-idf/issues/549
2017-04-28 19:37:14 +08:00
Angus Gratton
fa3120cb40
PPPoS example: Move pin configuration to menuconfig, add log statement
...
Also remove spurious infinite loop in app_main()
2017-04-21 14:29:16 +10:00
Angus Gratton
f3a567b65d
PPPoS: Rearrange config items (move TCP/IP stack size to LWIP), mark as experimental/unsupported
...
Ref #272
2017-04-21 14:23:34 +10:00
Adrian Muzyka
47c722d674
Enable lwip PPPoS support
...
* Fix some lwip api bugs
* Added PPP_SUPPORT parameter to lwip Kconfig
* Added example pppos_client
Merges #272 https://github.com/espressif/esp-idf/pull/272
2017-04-21 14:23:34 +10:00
Ivan Grokhotkov
041754f255
examples: increase stack size in http_request
...
Previously the stack size was 2048 bytes, which caused stack overflow
to be detected after one or two runs of the example.
2017-04-11 19:01:41 +08:00
Ivan Grokhotkov
6b94c32cd6
examples: fix https_request request content
...
Same as 727d884
, but for https_request example
2017-04-11 19:01:41 +08:00
Malte Janduda
1dc3ae6e4e
fixing http_request_example request content
...
request new lines must be `\r\n` as specified in the HTTP RFC.
Also the following logic checks for the socket to be closed by the server. This only happens with HTTP/1.0 not HTTP/1.1. So I have adjusted the protocol in the request, too.
2017-04-11 19:01:41 +08:00
Angus Gratton
821c70f5d7
examples: Standardise naming of files, symbols, etc. in examples
...
* Use "example" in all example function & variable names,
ie use i2c_example_xxx instead of i2c_xxx for example functions.
Closes #198 https://github.com/espressif/esp-idf/issues/198
* Mark example functions, etc. static
* Replace uses of "test" & "demo" with "example"
* Split the UART example into two
* Rename "main" example files to end with "_main.c" for disambiguation
2017-03-27 17:42:05 +11:00
Ivan Grokhotkov
4813ab2d28
examples: check return value of nvs_flash_init
...
nvs_flash_init may return an error code in some cases, and applications
should check this error code (or at least assert on it being ESP_OK, to
make potential issues more immediately obvious).
This change modifies all the examples which use NVS to check the error
code. Most examples get a simple ESP_ERROR_CHECK assert, while NVS
examples, OTA example, and NVS unit tests get a more verbose check which
may be used in real applications.
2017-03-15 10:44:54 +08:00
Angus Gratton
da660b234c
AWS IoT Device SDK Support
...
Use device cert/key embedded in firmware, or loaded from filesystem.
2017-03-13 17:23:29 +08:00
Angus Gratton
0b7058d8ef
mbedTLS: Add generic support for mbedTLS debug output via the esp_log functionality
2017-03-07 10:18:47 +11:00
Ivan Grokhotkov
26dec992eb
deep sleep: add note about disabling WiFi and BT
...
This change adds a note to esp_deep_sleep that applications should disable WiFi and BT before going into deep sleep.
SNTP example is also updated.
2017-02-21 17:07:16 +08:00
Angus Gratton
39c546d63f
openssl_server example: Roll back to TLS_server_method() for compatibility
...
Add a comment recommending TLS v1.2.
2017-02-15 17:19:09 +11:00
Malte Janduda
dcd5c5bb73
Example 10_openssl_server should use TLSv1.2 instead of SSLv3; fixed corrupted HTTP Header
2017-02-14 15:38:37 +11:00
krzychb
0b6598c492
Added README.md to example category folders
2017-01-18 21:03:15 +01:00
Krzysztof Budzynski
382999b378
Moved examples to new folders / categories. Removed example numbers from example names
2017-01-16 23:08:35 +01:00