Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test_function() {
- $.ajax({
- url: "http://192.168.0.188:8083/ZAutomation/api/v1/login",
- method: "POST",
- data: {
- form: true,
- login: "admin",
- password: "password",
- keepme: false,
- default_ui: "1"
- },
- });
- $.ajax({
- url: "http://192.168.0.188:8083/ZWave.zway/Run/devices[5].instances[0].commandClasses[38].Set(25)",
- method: "GET",
- xhrFields: {
- withCredentials: true
- }
- });
- };
- $(function() {
- $('.light-switch').on('click', function() {
- test_function();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement