Can I check the type of received message before read it in TinyOS 2.x? Because, controlling the message size is not always useful when we use two or more type of messages with same size.
TinyOS provides Active Message (AM) Interfaces to Multiplex access to radio resources. Perhaps you can use these interface to differentiate messages without reading or accessing the payload of the messages.