In designing a framework at the software level for WSN in manufacturing environments, we need to consider several non-trivial aspects that contribute to the efficiency, reliability, and robustness of the communication among the sensor nodes, mainly Medium Access Control (MAC), routing, and network management.