N: SIO Command 'E' (get) Error - FujiNetWIFI/fujinet-firmware GitHub Wiki
Network Command Open ($45) ['E']
This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).
Description
Return the most recent error code emitted by the currently open Protocol adapter. If no protocol adapter is connected, an error 207 (no connection available) is returned.
Parameters
ADAM
Parameters
- Device 09 to 0C
- Use AdamNET Write (EOS WRITE CHARACTER DEVICE)
Offset | Value |
---|---|
0 | 'E' |
Return Values
- $80 - ACK. Get Error successful, next receive will contain 1 byte of error code.
ATARI
Not needed for Atari
Examples
COLECO Adam
Z88DK
/* This uses eoslib: http://github.com/tschak909/eoslib */
unsigned char response[1024];
unsigned char return_error(unsigned char dev)
{
eos_write_character_device(dev,"E",1);
eos_read_character_device(dev,response,sizeof(response));
return response[0];
}
See Also
Put other related command links here.