The invention relates to a three-dimensional (3D) printer with an anti-edge warping function based on the internet of things. The 3D printer with the anti-edge warping function based on the internet of things comprises a case, a printing mechanism, a feeding mechanism, a base and a tray, and further comprises an anti-edge warping mechanism and a center control mechanism, wherein the anti-edge warping mechanism comprises a circulating assembly and a processing assembly; the circulating assembly comprises a first drive unit, a thin film and two rollers; and the processing assembly comprises a second drive unit, a shell, a nozzle, a separation block, a sponge block, a roller brush, a support unit, a lifting plate, two scraper blades and two first springs. According to the 3D printer with theanti-edge warping function based on the internet of things, the anti-edge warping mechanism drives the thin film to circularly move above the tray, the thin film is surface treated when being moved, and the firmness of adsorbing a printing material on the surface of the thin film is improved, so that the probability of the occurrence of an edge warping phenomenon during a printing process is reduced, and the printing quality is improved.