mirror of
https://gitee.com/peng_zhihui/HoloCubic
synced 2025-11-04 21:19:40 +08:00
[Fw] Modified getBilibiliFans method param.
This commit is contained in:
parent
38fe3ddaf3
commit
1ff20c595b
@ -57,11 +57,12 @@ void setup()
|
||||
lv_scr_load_anim(scr2, LV_SCR_LOAD_ANIM_MOVE_LEFT, 500, 3000, false);
|
||||
|
||||
|
||||
/*** Read WiFi info in SD-Card, then scan & connect WiFi ***/
|
||||
/*** Read WiFi info from SD-Card, then scan & connect WiFi ***/
|
||||
#if 1
|
||||
wifi.init(ssid, password);
|
||||
|
||||
Serial.println(wifi.getBilibiliFans("http://api.bilibili.com/x/relation/stat?vmid=20259914"));
|
||||
// Change to your BiliBili UID ¡ý
|
||||
Serial.println(wifi.getBilibiliFans("20259914"));
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@ -112,6 +112,7 @@
|
||||
<ClInclude Include="imu.h" />
|
||||
<ClInclude Include="lv_cubic_gui.h" />
|
||||
<ClInclude Include="lv_demo_encoder.h" />
|
||||
<ClInclude Include="lv_port_fatfs.h" />
|
||||
<ClInclude Include="lv_port_indev.h" />
|
||||
<ClInclude Include="network.h" />
|
||||
<ClInclude Include="rgb_led.h" />
|
||||
@ -124,7 +125,7 @@
|
||||
<ClCompile Include="imu.cpp" />
|
||||
<ClCompile Include="lv_cubic_gui.c" />
|
||||
<ClCompile Include="lv_demo_encoder.c" />
|
||||
<ClCompile Include="lv_fs_fatfs.c" />
|
||||
<ClCompile Include="lv_port_fatfs.c" />
|
||||
<ClCompile Include="lv_port_indev.c" />
|
||||
<ClCompile Include="network.cpp" />
|
||||
<ClCompile Include="rgb_led.cpp" />
|
||||
|
||||
@ -51,6 +51,9 @@
|
||||
<ClInclude Include="images.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="lv_port_fatfs.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="lv_port_indev.c">
|
||||
@ -80,7 +83,7 @@
|
||||
<ClCompile Include="network.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="lv_fs_fatfs.c">
|
||||
<ClCompile Include="lv_port_fatfs.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
|
||||
@ -44,11 +44,11 @@ void Network::init(String ssid, String password)
|
||||
Serial.println(WiFi.localIP());
|
||||
}
|
||||
|
||||
unsigned int Network::getBilibiliFans(String url)
|
||||
unsigned int Network::getBilibiliFans(String uid)
|
||||
{
|
||||
String fansCount = "";
|
||||
HTTPClient http;
|
||||
http.begin(url);
|
||||
http.begin("http://api.bilibili.com/x/relation/stat?vmid=" + uid);
|
||||
|
||||
// start connection and send HTTP headerFFF
|
||||
int httpCode = http.GET();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user