[dss-developer] Fire scene 76 for vDC with multiple devices?

Troß, Michael michael.tross at digitalstrom.com
Thu Mar 22 11:43:21 CET 2018


Hallo Alexander,

On 04.03.2018 23:01, dss at knauer-alexander.de<mailto:dss at knauer-alexander.de> wrote:
Müsste es nicht sein, dass für jedes Device die Scene 76 aufgerufen wird?  Woran kann das liegen?


für eine CallScene Notification wird der Callback nur einmal aufgerufen. Aber der "dsuid" Parameter ist ein Array aller Devices, die von diesem Aufruf betroffen sind. Je nachdem, ob der Aufruf an eine Zone, das gesamte Apartment oder ein einzelnes Device addressiert ist.

Michael



/*! \brief Register "call scene notification" callback.
 *
 * The callback function will be called each time a VDSM_NOTIFICATION_CALL_SCENE
 * message is received from the vdSM. Pass NULL for the callback function to
 * unregister the callback.
 *
 * \param handle dsvdc handle that was returned by dsvdc_new().
 * \param void (*function)(dsvdc_t *handle, char **dsuid, size_t n_dsuid,
 *                         int32_t scene, int force, int32_t *group,
 *                         int32_t *zone_id, void *userdata) callback function.
 *
 * Callback parameters group and zone_id are optional and will be NULL pointers
 * if not set.
 */
void dsvdc_set_call_scene_notification_callback(dsvdc_t *handle,
        void (*function)(dsvdc_t *handle, char **dsuid, size_t n_dsuid,
                         int32_t scene, bool force, int32_t *group,
                         int32_t *zone_id, void *userdata));


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20180322/1ec941a1/attachment.html>


More information about the dss-developer mailing list