Thingmagic Mercury API v1.23.0 Manual de usuario Pagina 107

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 128
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 106
Custom Serial Transport Naming
Advanced Customization 107
Changes Required for C#/.NET
Starting with version 1.23.0 of the MercuryAPI SDK, we have added a serial transport
dispatch table to store the transport scheme name and factory init functions.
We have also modified the Create() method to use the dispatch table for serial readers.
In order to use a new transport layer, the user needs to create their own serial transport
layer which inerits from SerialTransport.cs.
public class SerialTransportTCP : SerialTransport
{
// Factory function to return serial reader object
public static SerialReader CreateSerialReader(String uriString)
{
SerialReader rdr = new SerialReader(uriString,new
SerialTransportTCP());
return rdr;
}
….
contains the definitions for all the declarations in
SerialTransport.cs
…...
}
Note that SerialTransportTCP can be any user defined transport file.
Vista de pagina 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 127 128

Comentarios a estos manuales

Sin comentarios