Skip to content

Files

Latest commit

59a580f · Feb 4, 2021

History

History
This branch is 5 commits behind pulasthieka/fyp-system:refactor.

esp32-v2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 6, 2021
Feb 4, 2021

Extending support for other signals

  1. Create variable to store signal data

    String NewData = "[";
  2. Add to switch case block. Add before default case

    void readBuffer(HardwareSerial buffReader){
        ...
        switch (rx) {
        case 'N':
            active = true;
            combineTo = &NewData;
            break;
        ...
    }
  3. Add to the HTTPpayload and add the removeComma statement in Send_data function

    void Send_data(WiFiClient cl) {
         ...
         removeComma(NewData);
         ...
         payload = ... + NewData + "] ," ...;
    }
    
  4. Add to resetData

    void resetData(){
        ...
        NewData = "[";
    }