Thingmagic Mercury API v1.23.0 Manuel d'utilisateur Page 107

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 128
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 106
1 2 ... 102 103 104 105 106 107 108 109 110 111 112 ... 127 128

Commentaires sur ces manuels

Pas de commentaire