The invention discloses a transmission method for safely transmitting a data packet sent out by a sensor to a base station in an internet of things. The transmission method comprises the steps of: calculating out an optimal alterable included angle theta via a remaining time delay TZ of the current sending data packet in the internet of things; in a [-theta / 2, theta / 2] sector area with a connecting line between a current sender node and the base station as a reference, broadcasting a request sending packet to all neighboring nodes along a base station direction, waiting for a backoff time after the neighboring nodes receive the request sending packet and then replying a response packet; checking whether a distance between the current sender node and the base station is within a communication radius r2 of the current sender node, and if yes, directly sending the sending data packet to the base station, thereby finishing a data transmission task; if no, randomly selecting one neighboring node which replies the response packet in the [-theta / 2, theta / 2] sector area of the current sender node as a relay node, and sending the data packet to the relay node; replying a confirmation packet correspondingly after the relay node receives the data packet and then taking the relay node as the current sender node to repeat above process till the data packet is transmitted to the base station.