function decode(response) {
	if (response) {
		try {
			// use PEGJS parser to parse response payloads.
			return flexParser.parse(response);
		} catch (error) {
			console.error('flexradio-js command stream decoding error:');
			console.error(error);
		}
	}

	return null;
}
// decode() -- decode data sent from a FlexRadio on the TCP control stream.
- decode data sent from a FlexRadio on the TCP control stream.
- decode data sent from a FlexRadio on the TCP control stream .
function decode(response) {
	if (response) {
		try {
			return flexParser.parse(response);
		} catch (error) {
			console.error('flexradio-js command stream decoding error:');
			console.error(error);
		}
	}
	return null;
}
function decode ( response ) { if ( response ) { try { return flexParser . parse ( response ) ; } catch ( error ) { console . error ( 'flexradio-js command stream decoding error:' ) ; console . error ( error ) ; } } return null ; }
decode() -- decode data sent from a FlexRadio on the TCP control stream.
decode () -- decode data sent from a FlexRadio on the TCP control stream .
// use PEGJS parser to parse response payloads.