Changes

no edit summary
Line 21: Line 21:  
             <li>"value": "<b>0</b>" means low level state.</li>
 
             <li>"value": "<b>0</b>" means low level state.</li>
 
             <li>"value": "<b>1</b>" means high level state.</li>
 
             <li>"value": "<b>1</b>" means high level state.</li>
 +
            <li>"direction": "<b>in</b>" means input state.</li>
 +
            <li>"direction": "<b>out</b>" means output state.</li>
 
         </ul>
 
         </ul>
 
     </li>
 
     </li>
Line 29: Line 31:  
     </li>
 
     </li>
 
</ul>
 
</ul>
 +
 +
To change input settings, use the <i><b>update</i></b> command and specify a value:
 +
 +
ubus call ioman.gpio.dio0 update '{"value":"0"}'
 +
ubus call ioman.gpio.dio0 update '{"value":"1"}'
 +
ubus call ioman.gpio.dio0 update '{"direction":"in"}'
 +
ubus call ioman.gpio.dio0 update '{"direction":"out"}'

Navigation menu