NT_GetAtomicDouble

Function NT_GetAtomicDouble 

Source
pub unsafe extern "C" fn NT_GetAtomicDouble(
    subentry: NT_Handle,
    defaultValue: f64,
    value: *mut NT_TimestampedDouble,
)
Expand description

Get the last published value along with its timestamp. If no value has been published, returns the passed defaultValue and a timestamp of 0.

ยงParameters

  • subentry: subscriber or entry handle
  • defaultValue: default value to return if no value has been published
  • value: timestamped value (output)