How to store HEX in a unit8_t array? : Hi I want to store the HEX value into a unit8_t array.below is the code that i am trying to use and pass it to set the resource value


           const static unit8_t PSK_KEY[]="31383031"
      security->set_resource_value(M2MSecurity::Secretkey, PSK_KEY, sizeof(PSK_KEY) - 1);

or Do i need to set the PSK_KEY in ASCII??