Wifi driver question
Posted: Thu Jul 07, 2022 7:53 am
When I build a v3.x project there are a number of warnings about an unsigned conversion regarding the error codes in NB::Error::GeneralErrors. For example, in file nbWiFiWilcDriver.cpp there are a number of functions, such as GetSecurity(), that return an uint8_t value. But the error codes all exceed the range of an unsigned byte, hence the warning. For example, in GetSecurity(), it can return a Timeout error, which is a value of -256. When that value is converted to a byte to be returned, it becomes a value of 0, which is "NoError".
I don't use the WiFi feature, but if I did I would be concerned. Is this behavior intentional?
I don't use the WiFi feature, but if I did I would be concerned. Is this behavior intentional?