Sink Configuration
This section explains how to configure the Wirepas Sink settings of the TinyGateway.
To configure the Wirepas Sink settings of the TinyGateway, go to Configuration → Sink.
The following Wirepas settings must be configured for the Sink to work correctly:
-
Stack mode: this parameter defines how the Wirepas Sink interface is managed by the gateway.
The following Wirepas Sink interface management modes are available:- Enabled on WiFi/Eth/LTE network status: the Wirepas Sink interface is enabled when there is an active network connection, i.e., the WiFi interface is connected to a WiFi network or the Ethernet interface is connected to a LAN network.
In this configuration, the Wirepas Sink interface will be disabled on the gateway only when the network interface in use gets disconnected, i.e., the WiFi signal is lost or the ethernet cable is unplugged. - Enabled on MQTT status: the Wirepas Sink interface is enabled when there is an established MQTT connection with the broker.
In this configuration, the Wirepas Sink interface will be disabled on the gateway as soon as the gateway loses connection with the MQTT broker. - Permanently enabled: the Wirepas Sink interface is always enabled
- Permanently disabled: the Wirepas Sink interface is always disabled
This parameter could be useful to overcome situations where the gateway loses the connection with the MQTT broker backend for a long time.
If the Wirepas Sink interface is kept always active, the Wirepas Sink will continue to receive data from the Wirepas nodes even if the MQTT connection with the backend is not established (i.e., a disconnection has occurred). For short disconnection times, the TinyGateway is able to buffer received Wirepas nodes messages (up to 250 messages could be buffered), but when the buffer is filled, packets will be discarded and messages will be lost. In such cases, using one of the first two stack management mode is recommended, as the gateway will turn off the Wirepas Sink interface if the backend connection gets dropped and the Wirepas network will re-organize to send data to another Sink. - Enabled on WiFi/Eth/LTE network status: the Wirepas Sink interface is enabled when there is an active network connection, i.e., the WiFi interface is connected to a WiFi network or the Ethernet interface is connected to a LAN network.
-
Node address: the Wirepas Sink node address
-
Node role: TinyGateway could act as both a Wirepas Sink or a Wirepas Anchor.
- if the gateway should act as a Wirepas Sink choose CSMA-CA Sink.
- if the gateway should act as a Wirepas Anchor choose CSMA-CA Router.
- if the gateway should act as a Wirepas Sink choose CSMA-CA Sink.
-
Network address: the Wirepas Sink network address in decimal format.
If the address is in hexadecimal, it must be converted into decimal, ensuring it is in big-endian format. If the address is provided in litte-endian, the byte order must be reversed before conversion into decimal. -
Network channel: the Wirepas Sink network channel
-
Sink cost: leave to the default value
-
Cipher Key: the Wirepas Sink network chipher key
-
Authentication Key: the Wirepas Sink network authentication key

In the same tab, under the configurable properties, are displayed some other non configurable parameters, such as:
- Stored AppConfig
- Readonly properties - other properties related to the Sink
