You have to choose WiFi, Bluetooth, or GSM, but the Particle line of boards are pretty great, have an included Pub/Sub and event based web service, and are field programable so you can tweak your design after you solder it up and put it in an enclosure. You also get a lot more usable IO than a ESP2866.
On the down side, they cost more that an ESP and I have seen occasionally flakey behavior in some boards that requires a manual reboot every few weeks.
On the down side, they cost more that an ESP and I have seen occasionally flakey behavior in some boards that requires a manual reboot every few weeks.
https://www.particle.io/