|
Sentinel
|
Communication Task Implementation File. More...
#include "SensorData.h"#include "WiFi.h"#include "config.h"#include "network/network.h"#include "utils/threadsafe_serial.h"#include <Arduino.h>#include <CustomJWT.h>#include <HTTPClient.h>#include <TinyGsmClient.h>#include <cstring>Functions | |
| void | sendJsonPlain (const char *url, const char *jsonPayload) |
| Send JSON data as plain text to a specified URL. | |
| void | communicationTask (void *pvParameters) |
| communicationTask function | |
Variables | |
| QueueHandle_t | httpQueue |
| SemaphoreHandle_t | modemMutex |
Communication Task Implementation File.
This file contains the implementation of the communicationTask function, which is used to handle communication operations in a FreeRTOS task. The task is responsible for sending and receiving data from a queue and processing it. The task runs in an infinite loop, waiting for data to be available in the queue. When data is received, it is sent to the network for processing.
| void communicationTask | ( | void * | pvParameters | ) |
communicationTask function
This function handles communication operations in a FreeRTOS task. It reads processed data from a queue and sends it to the network. The task runs in an infinite loop, waiting for data to be available in the queue. When data is received, it is sent to the network for processing.
| pvParameters |
| void sendJsonPlain | ( | const char * | url, |
| const char * | jsonPayload ) |
Send JSON data as plain text to a specified URL.
| url | |
| jsonPayload |