Documentation
¶
Index ¶
- type Client
- func (rClient *Client) BrokerAddress() string
- func (rClient *Client) ClientId() string
- func (rClient *Client) Connect() error
- func (rClient *Client) Disconnect()
- func (rClient *Client) MQTTClient() MQTT.Client
- func (rClient *Client) PublishSensorData()
- func (rClient *Client) Raspb() *raspb.Raspberry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
Initializes and returns a new MQTT-Client. Sets client options and shutdown handling. mRasp = Raspberry governing arduinos which sensor data will be published to the MQTT-Broker mClientId = The MQTT-Client-Id that will be used to communicate with the MQTT-Broker (every Id has to be unique) mBroker = tcp-Address of the MQTT-Broker to publish/subscribe to
func (*Client) BrokerAddress ¶
func (*Client) MQTTClient ¶
func (*Client) PublishSensorData ¶
func (rClient *Client) PublishSensorData()
Publish sensor data from all Arduinos that this client has to the MQTT-Broker
Click to show internal directories.
Click to hide internal directories.