A generic framework for implementing sensor communication interfaces