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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user