IoT::CANopen

class Time

File Information

Library: IoT/CANopen
Package: CANopen
Header: IoT/CANopen/Time.h

Description

This class implements the CANopen TIME protocol.

Currently, only reception of TIME frames is supported.

Member Summary

Member Functions: onFrameReceived

Constructors

Time

Time(
    CANBus & canBus,
    Poco::UInt32 cobID = 0x0100
);

Creates the Time object using the given CANBus object. The given COB-ID will be used for identifying the TIME object.

Destructor

~Time

~Time();

Destroys the Time object.

Member Functions

onFrameReceived protected

void onFrameReceived(
    const CANFrame & frame
);

Handles TIME frames.

Variables

timeReceived

Poco::BasicEvent < const Poco::DateTime > timeReceived;

Fired when a TIME frame has been received.

Securely control IoT edge devices from anywhere   Connect a Device