devicesetChannelActionsPost
+ +post an action or actions on a channel
+ ++
/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions
+ +
Usage and SDK Samples
+ + + +curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions"
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.DevicesetApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesetApiExample {
+
+ public static void main(String[] args) {
+
+ DevicesetApi apiInstance = new DevicesetApi();
+ Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
+ Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
+ try {
+ SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DevicesetApi#devicesetChannelActionsPost");
+ e.printStackTrace();
+ }
+ }
+}
+ import SWGSDRangel.api.DevicesetApi;
+
+public class DevicesetApiExample {
+
+ public static void main(String[] args) {
+ DevicesetApi apiInstance = new DevicesetApi();
+ Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
+ Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
+ try {
+ SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DevicesetApi#devicesetChannelActionsPost");
+ e.printStackTrace();
+ }
+ }
+}
+ Integer *deviceSetIndex = 56; // Index of device set in the device set list
+Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
+ChannelActions *body = ; // Action(s) to apply to the channel
+
+DevicesetApi *apiInstance = [[DevicesetApi alloc] init];
+
+[apiInstance devicesetChannelActionsPostWith:deviceSetIndex
+ channelIndex:channelIndex
+ body:body
+ completionHandler: ^(SuccessResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.DevicesetApi()
+
+var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
+
+var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
+
+var body = ; // {ChannelActions} Action(s) to apply to the channel
+
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body, callback);
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class devicesetChannelActionsPostExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DevicesetApi();
+ var deviceSetIndex = 56; // Integer | Index of device set in the device set list
+ var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ var body = new ChannelActions(); // ChannelActions | Action(s) to apply to the channel
+
+ try
+ {
+ SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DevicesetApi.devicesetChannelActionsPost: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\DevicesetApi();
+$deviceSetIndex = 56; // Integer | Index of device set in the device set list
+$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+$body = ; // ChannelActions | Action(s) to apply to the channel
+
+try {
+ $result = $api_instance->devicesetChannelActionsPost($deviceSetIndex, $channelIndex, $body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DevicesetApi->devicesetChannelActionsPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::DevicesetApi;
+
+my $api_instance = SWGSDRangel::DevicesetApi->new();
+my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
+my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
+my $body = SWGSDRangel::Object::ChannelActions->new(); # ChannelActions | Action(s) to apply to the channel
+
+eval {
+ my $result = $api_instance->devicesetChannelActionsPost(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DevicesetApi->devicesetChannelActionsPost: $@\n";
+}
+ from __future__ import print_statement
+import time
+import swagger_sdrangel
+from swagger_sdrangel.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_sdrangel.DevicesetApi()
+deviceSetIndex = 56 # Integer | Index of device set in the device set list
+channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
+body = # ChannelActions | Action(s) to apply to the channel
+
+try:
+ api_response = api_instance.deviceset_channel_actions_post(deviceSetIndex, channelIndex, body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DevicesetApi->devicesetChannelActionsPost: %s\n" % e)
+ Parameters
+ +Name | +Description | +
---|---|
deviceSetIndex* | +
+
+
+
+
+
+
+
+
+ Integer
+
+
+
+
+ Index of device set in the device set list
+
+
+ Required
+
+ |
+
channelIndex* | +
+
+
+
+
+
+
+
+
+ Integer
+
+
+
+
+ Index of the channel in the channels list for this device set
+
+
+ Required
+
+ |
+
Name | +Description | +
---|---|
body * | ++ + + + + | +