The disclosure relates to a method for selecting a capillary network gateway for a machine device of a capillary network, wherein the machine device is capable of being associated with at least a first and a second capillary network gateway, wherein the first capillary network gateway has a first level of availability and the second capillary network gateway has a second level of availability. The method comprises selecting, for the machine device, the first capillary network gateway for communication of a first type of data and the second capillary network gateway for communication of a second type of data. The disclosure also relates to methods in a node, to machine device, node, computer programs, and computer program codes.