Hi
I'm sure this is a simple problem but I'm quite stuck, when ever I compile my code I get the "warning: cast to pointer from integer of different size" warning. Could someone show me how to cast/point or address the variable to stop it, thanks
The WriteUserData function requires a uint8_t data array type to work.
Code:
typedef struct {
uint64_t MacAddress;
uint64_t RootMacAddress;
uint16_t PANId;
uint8_t device_Type;
} PACK configData_t;
Code:
int setConfigData(configData_t *cfg_dta) {
uint8_t success = 0;
if (WriteUserData(0, (uint8_t*)cfg_dta->MacAddress, 8, (void*)WriteCallback) != SUCCESS) {
success = -1;
} // if
return success;
}