| 
    RBE1001Lib
    
   | 
 
#include <Arduino.h>#include <WebServer.h>#include <HTTP_Method.h>#include "WebPage.h"#include "static/static.h"#include <ESPAsyncWebServer/ESPAsyncWebServer.h>#include "Motor.h"#include "RBE1001Lib.h"#include <stdio.h>#include <string.h>#include "freertos/FreeRTOS.h"#include "freertos/queue.h"
Go to the source code of this file.
Functions | |
| AsyncWebServer | server (80) | 
| AsyncWebSocket | ws ("/test") | 
| void | onWsEvent (AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventType type, void *arg, uint8_t *data, size_t len) | 
| char * | String2Chars (String str) | 
| bool | isSafeToSend () | 
| void | lock () | 
| void | unlock () | 
| void | updateTask (void *param) | 
| void | packetTXTask (void *param) | 
Variables | |
| static WebPage * | thisPage | 
| static char | stringBuffer [200] | 
| static bool | lockOutSending = false | 
| long | timeSinceLastSend =0 | 
| bool isSafeToSend | ( | ) | 
Definition at line 152 of file WebPage.cpp.
References lockOutSending, and timeSinceLastSend.
Referenced by lock().
| void lock | ( | ) | 
Definition at line 158 of file WebPage.cpp.
References isSafeToSend(), and lockOutSending.
Referenced by WebPage::initalize(), and updateTask().

| void onWsEvent | ( | AsyncWebSocket * | server, | 
| AsyncWebSocketClient * | client, | ||
| AwsEventType | type, | ||
| void * | arg, | ||
| uint8_t * | data, | ||
| size_t | len | ||
| ) | 
Definition at line 30 of file WebPage.cpp.
References WebPage::markAllDirty(), WebPage::rxPacketCount, WebPage::setHeartbeatUUID(), WebPage::setJoystickValue(), WebPage::setSliderValue(), and WebPage::updatePID.
Referenced by WebPage::initalize().

| void packetTXTask | ( | void * | param | ) | 
Definition at line 194 of file WebPage.cpp.
| AsyncWebServer server | ( | 80 | ) | 
Referenced by WebPage::initalize().
| char* String2Chars | ( | String | str | ) | 
Definition at line 130 of file WebPage.cpp.
References stringBuffer.
| void unlock | ( | ) | 
Definition at line 165 of file WebPage.cpp.
References lockOutSending, and timeSinceLastSend.
Referenced by WebPage::initalize(), and updateTask().
| void updateTask | ( | void * | param | ) | 
Definition at line 172 of file WebPage.cpp.
References lock(), MAX_POSSIBLE_MOTORS, WebPage::SendAllLabels(), WebPage::SendAllValues(), WebPage::sendHeartbeat(), WebPage::SendPIDValues(), WebPage::SendSetpoint(), unlock(), and WebPage::updatePID.
Referenced by WebPage::initalize().

| AsyncWebSocket ws | ( | "/test" | ) | 
Referenced by WebPage::initalize(), WebPage::SendAllValues(), WebPage::sendPacket(), and WebPage::SendPIDValues().
      
  | 
  static | 
Definition at line 24 of file WebPage.cpp.
Referenced by isSafeToSend(), lock(), and unlock().
      
  | 
  static | 
Definition at line 18 of file WebPage.cpp.
Referenced by String2Chars().
      
  | 
  static | 
Definition at line 17 of file WebPage.cpp.
| long timeSinceLastSend =0 | 
Definition at line 26 of file WebPage.cpp.
Referenced by isSafeToSend(), and unlock().
 1.8.13