Skip to content

Commit

Permalink
Fix bugs in Reolink handler
Browse files Browse the repository at this point in the history
Signed-off-by: Simmon Yau <simmonyau@gmail.com>
  • Loading branch information
simmonyau committed Feb 28, 2025
1 parent 4dfb47e commit 385613a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
}
break;
default:
if (!cutDownURL.startsWith("/cgi-bin/api.cgi?cmd=Set")
|| !cutDownURL.startsWith("/api.cgi?cmd=Set")) {// ignore responses from all Setxx commands
// ignore responses from all Setxx commands
if (!cutDownURL.startsWith("/api.cgi?cmd=Set") && !cutDownURL.startsWith("/api.cgi?cmd=Set")) {
ipCameraHandler.logger.warn(
"URL {} is not handled currently by the binding, please report this message",
cutDownURL);
Expand Down Expand Up @@ -515,6 +515,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
} else {
ipCameraHandler.logger.warn("Unsupported command sent to enableLED channel");
}
break;
case CHANNEL_ENABLE_MOTION_ALARM:
if (OnOffType.ON.equals(command)) {
ipCameraHandler.sendHttpPOST("/api.cgi?cmd=SetMdAlarm" + ipCameraHandler.reolinkAuth);
Expand Down

0 comments on commit 385613a

Please sign in to comment.