The invention discloses a generator data transmission device and method based on the Industrial Internet of Things, comprising a box body, a mounting plate, a limit block, a bottom plate, a threaded hole, a first pipe, a base, a rubber pad, a cooling fan and a data output interface , first heat sink, wireless transmitter, water pump, first spring hole, processor, leaf spring, second pipe, cavity, guide rod, coil spring, backing ring, retaining ring, guide rod hole, second spring hole and the second radiating plate, the invention forms the circulation of cooling water by transporting the cooling water through the inside of the radiating plate through the water pump, and at the same time uses the fan to blow the radiating plate to realize the joint cooling of water cooling and air cooling. The installation of the coil spring reduces the vibration of the device. The wireless transmission of data is realized through the design of the wireless transmitter and the antenna. At the same time, the wired transmission is realized through the design of the data output interface, which improves the practicability of the device.