Skip to content

Commit

Permalink
Merge pull request #86 from KNX-IOT/build-test
Browse files Browse the repository at this point in the history
fix for meta data id == 0 (changed from 9)
  • Loading branch information
WAvdBeek authored Nov 17, 2023
2 parents 134eefb + 0d5a05b commit 8e4d451
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions knx_iot_virtual_pb.c
Original file line number Diff line number Diff line change
@@ -516,7 +516,7 @@ get_OnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -624,7 +624,7 @@ get_InfoOnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -783,7 +783,7 @@ get_OnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -891,7 +891,7 @@ get_InfoOnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1050,7 +1050,7 @@ get_OnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1158,7 +1158,7 @@ get_InfoOnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1317,7 +1317,7 @@ get_OnOff_4(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1425,7 +1425,7 @@ get_InfoOnOff_4(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
12 changes: 6 additions & 6 deletions knx_iot_virtual_sa.c
Original file line number Diff line number Diff line change
@@ -559,7 +559,7 @@ get_OnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -731,7 +731,7 @@ get_InfoOnOff_1(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -839,7 +839,7 @@ get_OnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1011,7 +1011,7 @@ get_InfoOnOff_2(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1119,7 +1119,7 @@ get_OnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |
@@ -1291,7 +1291,7 @@ get_InfoOnOff_3(oc_request_t *request, oc_interface_mask_t interfaces,
char mystring[100];
snprintf(mystring,99,"urn:knx:sn:%s%s",oc_string(device->serialnumber),
oc_string(request->resource->uri));
oc_rep_i_set_text_string(root, 9, mystring);
oc_rep_i_set_text_string(root, 0, mystring);
}
// resource types
if ((strncmp(m, "rt", m_len) == 0) |

0 comments on commit 8e4d451

Please sign in to comment.