API in C# MVC for impinj rfid reader

We are here to create API in asp.net C# MVC  for impinj rfid reader which sent tags values to cloud system.

We have to create model for API

   public class TagRead

    {

        public string epc { get; set; }

        public bool isHeartBeat { get; set; }

    }

     public class RFID

    {

        public string reader_name { get; set; }

        public string mac_address { get; set; }

        public List<TagRead> tag_reads { get; set; }

    }

Now our model is ready for implementation, next step to create API using this model


[HttpPost] [Route("api/RFID/Insert")]

        public HttpResponseMessage RFID([FromBody] RFID obj)

        {

            string reader_name = string.Empty;

            string mac_address = string.Empty;

            List<TagRead> tag_reads = new List<TagRead>();

          // Rest code is here for insertion and whatever you want to do 

        }

 

You can see Postman Response here for Data insertion for impinj RFID Reader.

 

 

Contact me for further integration :) :)

Post a Comment

0 Comments

Translate

Close Menu