A method for wireless sensor network communication in a mesh and star topology network, MSTN, comprising routing nodes, gateway nodes, handheld nodes and field nodes, the method comprises defining a superframe structure based on IEEE STD 802.15.4-2006 and transmitting communication resources within said MSTN via said superframe structure; characterized in that (a) said superframe structure is an extended superframe structure comprising a beacon frame period, a contention access period, CAP, a contention-free access period, CFP, an intra-cluster communication period, an inter-cluster communication period, and a sleeping period; wherein the beacon frame period is used for timeslot synchronization and superframe information publishing; the CAP is used for node addition and intra-cluster management, and for medium access control via a timeslot carrier sense multiple access with collision avoidance, CSMA/CA, algorithm; the CFP is used for emergency communications among the handheld nodes and the routing nodes via a time division multiple access, TDMA, approach; the intra-cluster communication period is used for intra-cluster communication via the TDMA approach and a timeslot frequency hopping; and the inter-cluster communication period is used for inter-cluster communication and management via the TDMA approach and the timeslot frequency hopping; and wherein said communication resources are in the form of <channel, timeslot>; (b) said extended superframe is maintained by each node, and the length of the extended superframe in each period is defined by itself; the length of the extended superframe is 2 N times the basic length of a superframe wherein N is a positive integer; the basic length of the superframe is 32 timeslots; the extended superframe length in a routing node is the minimum superframe length of the field nodes in the star network and the extended superframe length in the gateway node is the minimum superframe length of the routing nodes in the MSTN; and (c) said beacon frames, used to publish the extended superframe information, are sent in the following modes: (i) the gateway node and the routing nodes send beacon frames and do not forward beacon frames; (ii) the gateway node sends beacon frames for time synchronization for joining of neighbor routing nodes and for broadcasting the extended superframe information of the gateway node; and (iii) the routing nodes send beacon frames for time synchronization to facilitate joining of intra-cluster field nodes and to broadcast the extended superframe information of the routing nodes. (a) said superframe structure is an extended superframe structure comprising a beacon frame period, a contention access period, CAP, a contention-free access period, CFP, an intra-cluster communication period, an inter-cluster communication period, and a sleeping period; wherein the beacon frame period is used for timeslot synchronization and superframe information publishing; the CAP is used for node addition and intra-cluster management, and for medium access control via a timeslot carrier sense multiple access with collision avoidance, CSMA/CA, algorithm; the CFP is used for emergency communications among the handheld nodes and the routing nodes via a time division multiple access, TDMA, approach; the intra-cluster communication period is used for intra-cluster communication via the TDMA approach and a timeslot frequency hopping; and the inter-cluster communication period is used for inter-cluster communication and management via the TDMA approach and the timeslot frequency hopping; and wherein said communication resources are in the form of <channel, timeslot>; (b) said extended superframe is maintained by each node, and the length of the extended superframe in each period is defined by itself; the length of the extended superframe is 2 N times the basic length of a superframe wherein N is a positive integer; the basic length of the superframe is 32 timeslots; the extended superframe length in a routing node is the minimum superframe length of the field nodes in the star network and the extended superframe length in the gateway node is the minimum superframe length of the routing nodes in the MSTN; and (c) said beacon frames, used to publish the extended superframe information, are sent in the following modes: (i) the gateway node and the routing nodes send beacon frames and do not forward beacon frames; (ii) the gateway node sends beacon frames for time synchronization for joining of neighbor routing nodes and for broadcasting the extended superframe information of the gateway node; and (iii) the routing nodes send beacon frames for time synchronization to facilitate joining of intra-cluster field nodes and to broadcast the extended superframe information of the routing nodes. (i) the gateway node and the routing nodes send beacon frames and do not forward beacon frames; (ii) the gateway node sends beacon frames for time synchronization for joining of neighbor routing nodes and for broadcasting the extended superframe information of the gateway node; and (iii) the routing nodes send beacon frames for time synchronization to facilitate joining of intra-cluster field nodes and to broadcast the extended superframe information of the routing nodes.