- FunctionCore, SelectCore, SelectableCore, DeviceCore, FileCore:
- Update Logs to show [ProcessName]/[FunctionName]
- SelectableCore:
- Update ConnectTypeName array (more readable)
- Return THandle on all OpenXxxx() methods
- Do not remove select handle for UDPremoteClient (same handle as server)
- Add correct Handle when adding RemoteClient to Selector
- DataTreeCore:
- Renamed Get/SetMemXxx() methods to Get/SetChXxx()
- Renamed GetMember() to GetChild()
- Updated: JSONparse, ApplicationCore, FunctionCore, SelectableCore,
and WatchdogCore
- Remove unused PrevChild & Last vars in GetChild (GetMember)
- JSONparseCore:
- Use return values from write() and PrintXxx() methods to report fail
- SelectableCore:
- Fix possible uninitialised FlowCtrl & Parity value
- DateTimeCore:
- Fix possible memory overrun in temp buffer
- EventBufferCore:
- Fix possible uninitialised value error in AddEvent
- SelectableCore:
- Bug fix: StateCallBack array to small
- Implemented and tested UNIX sockets
- Started implementation of UDP sockets
- Add "TCP" to TCP socket related methods and types
- Fixed memory errors and leaks in DataTreeCore:
- Initial values not set correctly for Name, Next/PrevPeer
- Correctly set Last/FirstChild & Prev/NextPeer references on delete
- Added methods SetValuePtr()
- Fixed memory errors and leaks in JSONparseCore:
- Set set string/int/float values by passing pointers, ie. SetValuePtr()
- DataTreeCore:
- Merge TDataMember and CDataTree into => CDataMember
- Each node, incl root is now CDataMember object
- Modified function to not require BaseMember (Object is basemember)
- Split/duplicat most functions to require, or not require child path
- Added isNull/Object/Array/Sting() etc methods
- Many other methods removed or restructured
- Updated DataTree usage in: JSONparseCore,
ApplicationCore, FunctionCore, SelectableCore, WatchdogCore
- SelectableCore:
- Bug fix: correct ConnectTypeNames
- Pass handle reference to Select when adding file discriptor.
- Rename Select vars Handle -> SelectHandle
- Show type and name of handle on Select logs
- Add Resolve Delay, allow time delay before resolving address
Allow completion of other actions before blocking all to getaddr()
- Remove Handle->KeepAlive, assume always true
- SelectableCore:
- Move Serial port config params to Port/SerialConfig
- Only configure serial port if config setting provided in JSON file
- Add SerialConfig param to THandle struct, set when serial config given
- Rename method: ConfigureSerialPort() -> SetSerialPortConfig()
- New method: GetSerialPortConfig() read serial port config into Handle
- Split method SetPortHandle():
- SetPortHandle() - only set port type and address
- SetPortHandleSerial() - only set serial port parameters
- JSONparseCore:
- Bug fix: Incorrectly terminated PrintString on null
- SelectableCore:
- Add BaudRate, DataBits, Parity, StopBits, FlowCtrl, DataWait to THandle
- Include Serial Port setup in SetPortHandle()
- Read Serial Port config in LoadConfigData()
- Rename SetSerialConfig() -> ConfigureSerialPort()
- Configure Serial Port immediately after opening port
- SelectableCore:
- Split SetBuffers() into SetInBuffer() and SetOutBuffer()
- Rename SerialConfig() -> SetSerialConfig()
- Add serial port configuration (eg. baudrate) to ConfigData
- Read only no of bytes reported by FIONREAD
- DataTree:
- Bug fix: Create Int/Float/Bool params if requested
- SelectableCore:
- Split handling of Handle from Input() to InputHandle() method
- Allow multiple handles to be connected to single Channel
- Update logs to report Handle, not Channel name
- TimingCore:
- Convert all functions to inline functions in header (remove .cpp file)
- Add new function TimeLeft()
- WatchdogCore:
- Bug fix: No watchdog channel, use InputHandle() method not Input()
- Bug fix: ping ignored, use To:"watchdog" in ping command
- FunctionCore:
- Output() returns largest no of bytes written to linked input
- SelectableCore:
- Auto-manage:
- Add AutoManage param -> Persistent
- Will automatic open port if written to when Auto-Manage enabled
- Will keep port open (re-open if closed) if Persistent = true
- DNS resolve:
- Set AddressFailed if port could not open/bind
- Only use next resolved address if current address failed
- Remote Client connect not working properly
- Set Client Port no on connect
- Correctly handle create failure
- Show error on fail
- Input() fail to transfer data if Handle & Channel not same name
- Search for linked handles
- ApplicationCore:
- Rename ConfigParser -> JSONparser
- Make JSONparser a public parameter
- DataTreeCore:
- Bug fix: Insufficient memory allocation on SetValue if Len = -1
- FunctionCore_not_used:
- Started work on queued channel buffers or processing buffers
- Incomplete and temporarily abandoned due to time constraints
- Renamed modified FunctionCore -> FunctionCore_not_used
- ItemBufferCore:
- New Class for storing items in a FIFO style buffer
- FunctionCore:
- Implemented pulled input:
- Function creates static output: StoredOutput & StoredOutputLen
- Other Function pulls static output from input linked functions
- FunctionCore-ChannelBuffer:
- Tried to create a processing buffer
- Abandoned for now
- Library Clean up:
- Removed all unused C/C++ libraries from source
- First C/C++ libraries then redA libraries
- Library changes:
- renamed BufferCore -> CharBufferCore
- added ItemBufferCore
- CharBufferCore:
- Derive RollingBuffer & ShiftBuffer from common class CharBuffer
- CharBuffer is mostly a virtual class (interface)
- DataTreeCore:
- Allow types float, int & bool to be read as strings with GetStr()
- LogCore:
- Add comments to Logging parameters
- WatchDogCore:
- Call CSelectableCore::Process() in Process() to manage connect
- SelectableCore:
- Allow SetSocketHandle() to be called if Handle already set as socket
- added strlcase() method to convert string to lower case
- Update Handle structure:
- renamed Address -> HostName
- renamed PortNo -> PortName
- added AddressList for all resolved addresses
- added AddressInfo for active address
- Add ResolveAddress() method
- Domain name and protocol port resolving with GetAddrInfo()
- JSON updated:
- domain name can be provided instead of IP address
- protocol can be specified instead of Port No, e.g. "HTTP" / "SSH"
- Resolve address before connect, or use next resolved address