simpleTest.c 417 B

1234567891011121314151617181920
  1. /*
  2. * main.c
  3. *
  4. * Created on: 07.03.2014
  5. * Author: mrt
  6. */
  7. #include <stdio.h>
  8. #include "opcua.h"
  9. int main() {
  10. // given
  11. UA_Int32 pos = 0;
  12. UA_Byte src[] = { UA_INT32_NS0 | UA_VARIANT_ENCODINGMASKTYPE_ARRAY, 0x02, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF};
  13. UA_Variant dst;
  14. // when
  15. UA_Int32 retval = UA_Variant_decode(src, &pos, &dst);
  16. UA_Variant_deleteMembers(&dst);
  17. return 0;
  18. }