52 "Simple temp monitor",
53 "1.2.0.21 (2022-09-30)",
54 "1.1.0.0 (2022-09-30)"
This File contains all SetXXX functions which will be needed to transfer data with a specific PGN.
double CToKelvin(double v)
Converting a value from Celsius to Kelvin.
@ N2kts_MainCabinTemperature
value is representing a main cabin temperature
Automatic library selection according to the selected board.
void SendN2kTemperature()
tN2kSyncScheduler TemperatureScheduler(false, 2000, 500)
const unsigned long TransmitMessages[]
tN2kSyncScheduler EnvironmentalScheduler(false, 500, 510)
tN2kSyncScheduler OutsideEnvironmentalScheduler(false, 500, 520)
This class contains all the data of an NMEA2000 message.
Synchronized Scheduler for timed message sending.
bool IsTime()
Check if ít is time.
void UpdateNextTime()
Update the timestamp for NextTime.
void SetProductInformation(const char *_ModelSerialCode, unsigned short _ProductCode=0xffff, const char *_ModelID=0, const char *_SwCode=0, const char *_ModelVersion=0, unsigned char _LoadEquivalency=0xff, unsigned short _N2kVersion=0xffff, unsigned char _CertificationLevel=0xff, int iDev=0)
Set the Product Information of this device.
void EnableForward(bool v=true)
Enable message forwarding to stream.
void ParseMessages()
Parse all incoming Messages.
void SetDeviceInformation(unsigned long _UniqueNumber, unsigned char _DeviceFunction=0xff, unsigned char _DeviceClass=0xff, uint16_t _ManufacturerCode=0xffff, unsigned char _IndustryGroup=4, int iDev=0)
Set the Device Information. See also NAME.
bool Open()
Open the CAN device.
bool SendMsg(const tN2kMsg &N2kMsg, int DeviceIndex=0)
Send message to the NMEA2000 bus.
void ExtendTransmitMessages(const unsigned long *_TransmitMessages, int iDev=0)
Extend the list of Transmitted Messages.
void SetOnOpen(void(*_OnOpen)())
Set OnOpen callback function.
void SetMode(tN2kMode _N2kMode, uint8_t _N2kSource=15)
Set the library mode and start source address.
void SetN2kOutsideEnvironmentalParameters(tN2kMsg &N2kMsg, unsigned char SID, double WaterTemperature, double OutsideAmbientAirTemperature=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
Setting up Message "Environmental Parameters - DEPRECATED" - PGN 130310.
void SetN2kTemperature(tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
Setting up Message "Temperature - DEPRECATED" - PGN 130312.
void SetN2kEnvironmentalParameters(tN2kMsg &N2kMsg, unsigned char SID, tN2kTempSource TempSource, double Temperature, tN2kHumiditySource HumiditySource=N2khs_Undef, double Humidity=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
Setting up Message "Environmental Parameters - DEPRECATED" - PGN 130311.