redvypr.data_packets.get_datastream_from_data¶
- redvypr.data_packets.get_datastream_from_data(data, datakey, uuid=False)¶
Returns a redvypr datastream string including the hostname, ip with the optional uuid.
- Parameters:
datakey (str) – The datakey,
data (dict) – A redvypr data dictionary
uuid (Optional[bool]) – Default False. Returns the devicename with the uuid (True) or the hostname + IP-Address (False)
- Returns:
The full datastream
devicename string if datakey is None or ‘’
None if datakey is not in data dict
- Return type:
str