oxinon / BTC-price-ticker-V2_1-TTGO-T-Display

Simple Bitcoin price ticker by using TTGO T-Display ESP32 and 1.14 Inch Display with CoinMarketcap API for Arduino IDE
GNU General Public License v3.0
21 stars 5 forks source link

Compilation error: 'class CoinMarketCapApi' has no member named 'GetTickerInfo' #5

Closed DreaMare2004 closed 1 year ago

DreaMare2004 commented 1 year ago

Hello, thank you for sharing this ! I hope i'll enjoy it soon : )

But i got an error while compiling BTC_price_ticker_V2_1_TTGO_T_Display.ino: In function 'void printTickerData(String)':

BTC_price_ticker_V2_1_TTGO_T_Display.ino:132:38: error: 'class CoinMarketCapApi' has no member named 'GetTickerInfo' CMCTickerResponse response = api.GetTickerInfo(ticker, "USD");

Compilation error: 'class CoinMarketCapApi' has no member named 'GetTickerInfo'

how to solve it ? Thank you !!

DreaMare2004 commented 1 year ago

change for : CMCTickerResponse response = api.update(ticker, "USD");