Hi colleagues,
I think, there is an error in https://github.com/RAKWireless/Products_practice_based_on_RUI,
all files lora_config.c
Line 480
rui_return_status = rui_i2c_rw(&I2c_temp,RUI_IF_WRITE,strtoul(argv[2],0,16),(uint16_t)strtoul(argv[3],0,16),i2c_data,(uint16_t)atoi(argv[4]));
shoul be
rui_return_status = rui_i2c_rw(&I2c_temp,RUI_IF_WRITE,strtoul(argv[2],0,16),(uint16_t)strtoul(argv[3],0,16),i2c_data, app_len);
The last parameter for rui_i2c_rw() should be length, what is in this write case length of user data.
Hi Sucre,
thanks for info, can you help me more please.
I cannot make the i2C run, rui_i2c_rw() always returns me RUI_STATUS_IIC_RW_ERROR.
I am not sure if HW/SW error. Is there any possibilities to get more info, diagnostics, etc.
How can I find the issue?
Thx Ant