You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Julian Feinauer <j....@pragmaticminds.de> on 2018/10/06 19:21:50 UTC

Dummy Driver

Hey,

just had another thought.
I remember chris writing about a mysterious Dummy Driver (I think he said it was implemented by Andrey, but I’m not sure).
Do we have some kind of documentation about it as it would really make (some testing) a lot more easy?

Thanks already!
Julian

Re: Dummy Driver

Posted by Andrey Skorikov <an...@codecentric.de>.
Hi Julian.

There is a "test"-driver associated with the "test:" protocol code. The 
implementation is in 
https://github.com/apache/incubator-plc4x/tree/master/plc4j/protocols/test. 
I wrote the initial version to simplify testing the kafka connector, and 
Christofer improved the code later. The driver simulates a "dummy" 
device in the same client JVM process (no network connections will be 
created). Just use "test:something" as the connection URL. If you want 
to "read" a random integer, just use the query "RANDOM/foo:INTEGER" on 
that connection.

Andrey


On 10/06/2018 09:21 PM, Julian Feinauer wrote:
> Hey,
>
> just had another thought.
> I remember chris writing about a mysterious Dummy Driver (I think he said it was implemented by Andrey, but I’m not sure).
> Do we have some kind of documentation about it as it would really make (some testing) a lot more easy?
>
> Thanks already!
> Julian