/** * @brief Gets the ClockIdentity string * @param id [out] Pointer to an array of octets. * @return void */ void getClockIdentityString(uint8_t *id) { clock_id.getIdentityString(id); }
/** * @brief Sets a new GM clock ID * @param id New id * @return void */ void setGrandmasterClockIdentity(ClockIdentity id) { if (id != grandmaster_clock_identity) { GPTP_LOG_STATUS("New Grandmaster \"%s\" (previous \"%s\")", id.getIdentityString().c_str(), grandmaster_clock_identity.getIdentityString().c_str()); grandmaster_clock_identity = id; } }