云台ip地址设置问题

lowmem
XI.CHEN 4 weeks ago
parent 621bbb9c78
commit 812688ae68

@ -1612,7 +1612,7 @@ bool CPhoneDevice::TakePhotoWithNetCamera(IDevice::PHOTO_INFO& localPhotoInfo, c
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
net_handle_t netHandle = 0;
#ifndef USING_N938
#if (!(defined USING_N938 && defined USING_PTZ))
// Wait about 10s
for (int idx = 0; idx < 84; idx++)
{

@ -1174,8 +1174,8 @@ public class MicroPhotoService extends Service {
new Thread(new Runnable() {
@Override
public void run() {
if (getCustomAppId() == 2) {
// setStaticNetwork(iface, "192.168.68.91", "192.168.68.91", "192.168.68.0", 24);
if (getCustomAppId() == 2 || getCustomAppId() == 1) {
setStaticNetwork(iface, "192.168.68.91", "192.168.68.91", "192.168.68.0", 24);
} else {
setEthernetRoute(iface, "192.168.68.0", 24);
}
@ -1798,7 +1798,7 @@ public class MicroPhotoService extends Service {
public void setStaticNetwork(final String iface, final String ip, final String netmask, final String gateway)
{
if (getCustomAppId() == 2) {
if (getCustomAppId() == 2 || getCustomAppId() == 1) {
// N938
new Thread(new Runnable() {
@Override

Loading…
Cancel
Save