Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.79 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.79 KB

WiSer Source Code

This directory contains the WiSer project source code built using the PlatformIO extension in VS Code.

Compile and Upload

  1. Press the "BOOT" button on WiSer-USB/WiSer-TTL and connect it to the USB connector on your computer.
  2. After switching to boot mode, the board will accept the new firmware.
  3. To build, click on the "Build" button in the PlatformIO toolbar at the bottom of the VS Code window.
  4. To upload, click on the "Upload" button in the PlatformIO toolbar at the bottom of the VS Code window.
  5. Verify that your code is compiled, uploaded, and executed on the WiSer board.

Configuration MACROS

  1. Before compilation, it is required to change the value of "DEVICE_CONFIG_MODE" to either "DEVICE_CONFIG_MODE_USB" for WiSer-USB or "DEVICE_CONFIG_MODE_UART" for WiSer-UART in config.h.
  2. change the value of "CONFIG_ESPNOW_BROADCAST_ENABLE" to 1 to enable the brodcast mode in config.h. By default, broadcast mode is disabled.
  3. change the value of "CONFIG_ESPNOW_ENCRYPTION_ENABLE" to 0 to disable the encryption of data in config.h. By default, encyption is enabled in th device.
  4. Change the value of "CONFIG_ESPNOW_USE_NVS_PEER_MAC" to 0 in config.h to use the default peer MAC address stored in variable "s_app_peer_mac" in app_espnow.c. By default, device will use the pre-paired peer MAC address stored in the NVS memory during production.

Notes

  1. By default, WiSer devices are equipped with firmware that includes pre-paired devices, facilitating secure point-to-point wireless serial communication with data encryption enabled. Please be aware that the Broadcast mode is disabled by default.
  2. platformio.ini contains your project settings. More information about this file can be found here.