PyramidTechnologies / netPyramid-RS-232

Alpha release of the Pyramid C# .NET RS-232 API
MIT License
6 stars 6 forks source link

Validator is losing state, Always nulll when trying to shut it down. There is no simple way to shut down the Cash Accepter #8

Closed ErnestMushinge closed 4 years ago

ErnestMushinge commented 4 years ago
corytodd commented 4 years ago

The main loop should not be manually stopped and started. Instead, use the pause and resume API.

https://github.com/PyramidTechnologies/netPyramid-RS-232/blob/master/Apex7000_BillValidator/ApexValidator.cs#L138

Pay close attention to the notes on that function because they explain that pausing/stopping the acceptor immediately is not possible. This is due to the way this protocol is designed.

ErnestMushinge commented 4 years ago

@corytodd Thank you Cory like you mentioned I will go ahead and try activating the escrow mode.