You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updated Anjay to version 3.1.1
- Added CHANGELOG.md file
- Added information about updating submodule to README.md step
- Integrated with FreeRTOS Cellular Interface
- Fixed display configuration in m5stick-plus.bin binary file
Copy file name to clipboardexpand all lines: README.md
+19-9
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,22 @@ The following LwM2M Objects are supported:
20
20
## Compiling and launching
21
21
1. Install ESP-IDF and its dependencies on your computer. Please follow the instructions at https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32/get-started/index.html up to and including the point where you call `. $HOME/esp/esp-idf/export.sh`
22
22
* The project has been tested with ESP-IDF v4.4, but may work with other versions as well.
23
-
2. Run `idf.py set-target esp32` in the project directory
24
-
3. Run `idf.py menuconfig`
23
+
1. Clone the repository `git clone https://github.com/AVSystem/Anjay-esp32-client.git` and navigate to project directory
24
+
1. Initialize and update submodules with `git submodule update --init --recursive`
25
+
1. Run `idf.py set-target esp32` in the project directory
26
+
1. Run `idf.py menuconfig`
25
27
* navigate to `Component config/anjay-esp32-client`:
26
28
* select one of supported boards or manually configure the board in `Board options` menu
27
29
* configure Anjay in `Client options` menu
28
30
* configure WiFi in `Connection configuration` menu
29
-
4. Run `idf.py build` to compile
30
-
5. Run `idf.py flash` to flash
31
+
1. Run `idf.py build` to compile
32
+
1. Run `idf.py flash` to flash
31
33
* NOTE: M5StickC-Plus does not support default baudrate, run `idf.py -b 750000 flash` to flash it
32
-
6. The logs will be on the same `/dev/ttyUSB<n>` port that the above used for flashing, 115200 8N1
34
+
1. The logs will be on the same `/dev/ttyUSB<n>` port that the above used for flashing, 115200 8N1
33
35
* You can use `idf.py monitor` to see logs on serial output from a connected device, or even more conveniently `idf.py flash monitor` as one command to see logs right after the device is flashed
34
36
35
37
## Connecting to the LwM2M Server
36
-
To connect to [Coiote IoT Device Management](https://www.avsystem.com/products/coiote-iot-device-management-platform/) LwM2M Server, please register at [https://www.avsystem.com/try-anjay/](https://www.avsystem.com/try-anjay/). The default Server URI (Kconfig option `ANJAY_CLIENT_SERVER_URI`) is set to try-anjay server, but you must manually set other client configuration options.
38
+
To connect to [Coiote IoT Device Management](https://www.avsystem.com/products/coiote-iot-device-management-platform/) LwM2M Server, please register at [https://eu.iot.avsystem.cloud/](https://eu.iot.avsystem.cloud/). The default Server URI (Kconfig option `ANJAY_CLIENT_SERVER_URI`) is set to EU Cloud Coiote DM instance, but you must manually set other client configuration options.
37
39
38
40
NOTE: You may use any LwM2M Server compliant with LwM2M 1.0 TS. The server URI
39
41
can be changed in the example configuration options.
@@ -44,7 +46,7 @@ To do that, `esptool.py` is required, which can be installed running `pip instal
Device will be reset and run with provided configuration.
78
80
### TCP socket
79
-
To switch to TCP socket instead of UDP run `idf.py menuconfig`, navigate to `Component config/anjay-esp32-client/Client options/Choose socket` and select TCP (remember that you must also provide a proper URI in the `nvs_config.csv` file, e.g. `coaps+tcp://try-anjay.avsystem.com:5684`). NOTE: Coiote DM currently only supports the Certificate mode when using TCP and TLS.
81
+
To switch to TCP socket instead of UDP run `idf.py menuconfig`, navigate to `Component config/anjay-esp32-client/Client options/Choose socket` and select TCP (remember that you must also provide a proper URI in the `nvs_config.csv` file, e.g. `coaps+tcp://eu.iot.avsystem.cloud:5684`).
80
82
### ESP32 with certificates
81
83
1. Prepare your certificates. All certificates should have a `.der` extension and should be added to the directory where this `README.md` file is located. The names of the certificates should be as follows:
82
84
* client public certificate - `client_cert.der`
83
85
* client private certificate - `client_key.der`
84
86
* server public certificate - `server_cert.der`
85
-
2. Run `idf.py menuconfig`, navigate to `Component config/anjay-esp32-client/Client options/Choose security mode` and select `Certificates`.
87
+
1. Run `idf.py menuconfig`, navigate to `Component config/anjay-esp32-client/Client options/Choose security mode` and select `Certificates`.
86
88
### FOTA
87
89
After compilation, you can perform FOTA with Coiote DM. Required binary file location:
0 commit comments