BitMaker-hub / NerdMiner_v2

Improved version of first ESP32 NerdMiner
Other
1.38k stars 252 forks source link

Update monitor.cpp #230

Closed arcsin3x closed 7 months ago

arcsin3x commented 8 months ago

修改了api接口,保证国内可用

BitMaker-hub commented 7 months ago

Thanks!!!

arcsin3x commented 7 months ago

Thanks!!!

Sorry, I'm not very good at using GitHub, there were some errors in the previous code.

if (doc.containsKey("USD")) bitcoin_price = doc["USD"];

define getBTCAPI "https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD"

This is the correct API.