3.1.7 RNWF Service Layer
This section explains the internal detail and implementation of RNWF MCC Melody component generated library source code. The RNWF host driver library provides all the necessary services to simplify the host application development. It encapsulates most of the RNWF AT commands in a service layer and exposes simple API’s to develop user application. Each services allows to register user callback function to notify responses.
These API’s construct one or more AT commands for the requested operation. The
constructed AT command frames are passed to the underlying UART driver and sent to RNWF11 Wi-Fi module. The RNWF host driver implements
a queue to handle all the asynchronous events and notifies the application using the
registered callbacks. The following block diagram illustrates various layers of the
system.
Following are the services implemented in the RNWF11 Host driver:
- Wi-Fi Service
- MQTT Service
- ECC Service
- Net Socket Service
- OTA Service
- System Service