1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 06:23:07 +01:00

free GwApi from ArduinoJson

This commit is contained in:
wellenvogel
2021-11-28 12:11:47 +01:00
parent d9af772a57
commit 5195c3be88
8 changed files with 37 additions and 20 deletions

View File

@@ -28,6 +28,7 @@
#include "N2kDataToNMEA0183.h"
#include "NMEA0183AISMessages.h"
#include "ConverterList.h"
#include "GwJsonDocument.h"
@@ -141,7 +142,7 @@ private:
LOG_DEBUG(GwLog::DEBUG+1,"handled %ld",N2kMsg.PGN);
}
}
virtual void toJson(JsonDocument &json)
virtual void toJson(GwJsonDocument *json)
{
converters.toJson(String(F("cnv")),json);
}

View File

@@ -25,12 +25,12 @@ OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <NMEA0183.h>
#include <NMEA2000.h>
#include <GwLog.h>
#include <GwBoatData.h>
#include <GwXDRMappings.h>
//------------------------------------------------------------------------------
class GwJsonDocument;
class N2kDataToNMEA0183
{
public:
@@ -54,7 +54,7 @@ public:
virtual ~N2kDataToNMEA0183(){}
virtual unsigned long* handledPgns()=0;
virtual int numPgns()=0;
virtual void toJson(JsonDocument &json)=0;
virtual void toJson(GwJsonDocument *json)=0;
virtual String handledKeys()=0;
};
#endif