pub fn write_probe_id(probe_id: u32) -> Result<()>
Write the probe ID to the state directory
Creates the state directory if it doesn’t exist