Add debug mode to simulate a capture
This commit is contained in:
@@ -3,6 +3,8 @@ import settings
|
||||
import time
|
||||
|
||||
def np_02B_api(ip, username, password, is_on):
|
||||
if settings.DEBUG: return
|
||||
|
||||
if is_on:
|
||||
endpoint = '/cmd.cgi?grp=0'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user