Closed matt-vdv closed 3 years ago
That's pretty great Matt! Do you see anything that needs to be changed or things that need to be added to the emulator?
@FrightRisk, as far as I can see, it is ready to be merged and used! As more is added to the software, I can add these to the emulator and submit new pull requests.
What do you think about adding responses to the emulator? I'm not sure all of them could be added easily, because for things like turnouts and sensors you would have to store what was entered so you could spit back a list, but most commands have some kind of response like
Sure! I will look into that.
I have added an emulator to the web interface. There is now a dropdown menu next to the connect button that lets the user select between serial and the emulator (serial is the default). If the emulator is selected, it allows the whole of the emulator interface to be used without errors, whilst still providing the debug statements in the debug console. I also added handling of the error that occurs if the user cancels the serial port selection. This is the feature I was talking about in issue #7 (Add an Emulator).