錯誤爲'invalid conversion from 'char*' to 'uint8_t {aka unsigned char}' [-fpermissive]'
。我正在嘗試使用ssid從網絡獲取rssi,而無需直接連接到它。wifi.Rssi - 從char *轉換爲uint8_t
char ssid[]="GreenNET";
void updateRSSI(){
rssi = WiFi.RSSI(ssid);
Serial.print(rssi);
Serial.print(" dBm");
Serial.println();
}
https://www.arduino.cc/en/Reference/WiFiRSSI
那麼,有什麼問題嗎? –
@SouravGhosh如何將char *轉換爲uint8_t – hig
[讓我谷歌爲你](https://www.google.com/search?q=how+to+convert+char*+to+uint8_t&oq=how+to + convert + char * + to + uint8_t&aqs = chrome..69i57&sourceid = chrome&ie = UTF-8) –