Service Console

from console import Console

Port NameLocationProtocolInterfaces
ConsoleInputlocalConsoleIface

List of Available Interfaces

ConsoleIface

Operation NameInput TypeOutput TypeFaultsDescription
enableTimestampEnableTimestampRequestvoid-
It enables timestamp inline printing for each console output operation call: print, println
Parameter format allows to specifiy the timestamp output format. Bad Format will be printed out if format value is not allowed.
printundefinedvoid-
printlnundefinedvoid-
readLineReadLineRequeststring-
Read a line from the console using a synchronous call
registerForInputRegisterForInputRequestvoid-
it enables the console for input listening
parameter enableSessionListener enables console input listening for more than one service session (default=false)
subscribeSessionListenerSubscribeSessionListenervoid-
it receives a token string which identifies a service session.
it enables the session to receive inputs from the console
unsubscribeSessionListenerUnsubscribeSessionListenervoid-
it disables a session to receive inputs from the console, previously registered with subscribeSessionListener operation

Types

EnableTimestampRequest:
Type Declaration
bool {
  format[0,1]: string // 
}
ReadLineRequest:
Type Declaration
void {
  secret[0,1]: bool // 
}
RegisterForInputRequest:
Type Declaration
void {
  enableSessionListener[0,1]: bool // 
}
SubscribeSessionListener:
Type Declaration
void {
  token[1,1]: string // 
}
UnsubscribeSessionListener:
Type Declaration
void {
  token[1,1]: string // 
}