Yamaha MusicCast™ v0.1.0 MusicCast.Network
A module for supervising a network of MusicCast devices.
Summary
Functions
Adds a new device to the network
Starts a network as part of a supervision tree
Subscribes the current process to notifications from the given device
Unsubscribes the current process from notification from the given device
Returns the PID for the registered device id
Returns a list of all registered devices
Functions
Adds a new device to the network.
Starts a network as part of a supervision tree.
subscribe(device_id)
subscribe(MusicCast.Network.Entity.device_id) :: {:ok, pid} | {:error, {:already_registered, pid}}
Subscribes the current process to notifications from the given device.
Unsubscribes the current process from notification from the given device.
whereis(device_id)
whereis(MusicCast.Network.Entity.device_id) :: {pid, MusicCast.Network.Entity.ip_address} | nil
Returns the PID for the registered device id.
Returns a list of all registered devices.