+
+// TODO: Have to change session management flag to AFB_SESSION_CHECK to use token auth
+static const struct afb_verb_v2 _afb_verbs_v2_hvac[]= {
+ {
+ .verb = "get_temp_left_zone",
+ .callback = get_temp_left_zone,
+ .auth = NULL,
+ .info = "Get the left zone temperature",
+ .session = AFB_SESSION_NONE_V2
+ },
+ {
+ .verb = "get_temp_right_zone",
+ .callback = get_temp_right_zone,
+ .auth = NULL,
+ .info = "Get the right zone temperature",
+ .session = AFB_SESSION_NONE_V2
+ },
+ {
+ .verb = "get_fanspeed",
+ .callback = get_fanspeed,
+ .auth = NULL,
+ .info = "Read fan speed",
+ .session = AFB_SESSION_NONE_V2
+ },
+ {
+ .verb = "get",
+ .callback = get,
+ .auth = NULL,
+ .info = "Read all speed",
+ .session = AFB_SESSION_NONE_V2
+ },
+ {
+ .verb = "set",
+ .callback = set,
+ .auth = NULL,
+ .info = "Set a HVAC component value",
+ .session = AFB_SESSION_NONE_V2
+ },
+ {
+ .verb = NULL,
+ .callback = NULL,
+ .auth = NULL,
+ .info = NULL,
+ .session = 0
+ }
+};
+
+const struct afb_binding_v2 afbBindingV2 = {
+ .api = "hvac",
+ .specification = NULL,
+ .info = "HVAC service",
+ .verbs = _afb_verbs_v2_hvac,
+ .preinit = bindingServicePreInit,
+ .init = bindingServiceInit,
+ .onevent = onEvent,
+ .noconcurrency = 0
+};