N: SIO Command $FB Set JSON Parameters - FujiNetWIFI/fujinet-firmware GitHub Wiki

N: SIO Command Set JSON Parameters ($FB)

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Set JSON parameters on the underlying json object. This allows values to be changed from the host.

JSON Channel mode must be set first.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $08
DCOMND $FB
DSTATS $00
DBUF NULL
DTIMLO $0F
DBYT 0
DAUX1 See below for value being affected
DAUX2 The value to set

DAUX1 Values

  • 0 - JSON QUERY PARAM
  • 1 - JSON LINE ENDING

Examples

C

/**
 * sio_json_line_ending() - Change json line ending
 */
void sio_json_line_ending(unsigned char line_ending)
{
  OS.dcb.ddevic=0x71;
  OS.dcb.dunit=1;
  OS.dcb.dcomnd=0xFB;
  OS.dcb.dstats=0x00;
  OS.dcb.dbuf=NULL;
  OS.dcb.dtimlo=0x0f;
  OS.dcb.dbyt=0;
  OS.dcb.daux1=1; /* LINE ENDING */
  OS.dcb.daux2=line_ending;
  siov();
}

See Also