Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#27 Ambient送信機能実装 #62

Merged
merged 4 commits into from
Jun 12, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ref #27 送信できたがちょくちょく失敗する
  • Loading branch information
kamiyaowl committed Jun 12, 2020
commit 87255f6e69abcc2075e661b314596d855e3c43e8
3 changes: 2 additions & 1 deletion src/wifi/WifiTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void WifiTask::setup(void) {
config.read(GlobalConfigKeys::AmbientChannelId, channelId);
auto writeKey = config.getReadPtr<char>(GlobalConfigKeys::AmbientWriteKey);

this->ambient.begin(channelId, writeKey, &this->wifi);
this->ambient.begin(channelId, writeKey, &this->client);
}
});
}
Expand All @@ -41,6 +41,7 @@ bool WifiTask::invokeGetWifiStatus(const WifiTaskRequest& req, WifiTaskResponse&
resp.data.wifiStatus.ipAddr[3] = 0;
return false;
}

// set status
resp.data.wifiStatus.status = wifi.status();
// set ip addr
Expand Down
1 change: 1 addition & 0 deletions src/wifi/WifiTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class WifiTask : public FpsControlTask {
bool isUseWifi;
bool isUseAmbient;
// ローカル変数
WiFiClient client;
Ambient ambient;


Expand Down