Currently it is not possible to subscribe to a group feed because IO_MQTT#subscribe validates feed_key unconditionally. When group_key is provided instead of feed_key, feed_key should not be required to be valid. This issue is also present in IO_MQTT#unsubscribe.
This change makes it so that IO_MQTT#subscribe and IO_MQTT#unsubscribe validate feed_key and group_key only when one is provided.
Currently it is not possible to subscribe to a group feed because
IO_MQTT#subscribe
validatesfeed_key
unconditionally. Whengroup_key
is provided instead offeed_key
,feed_key
should not be required to be valid. This issue is also present inIO_MQTT#unsubscribe
.This change makes it so that
IO_MQTT#subscribe
andIO_MQTT#unsubscribe
validatefeed_key
andgroup_key
only when one is provided.