4 ms·
Well, on the ESP8266 you have to code directly in C with the library or in MicroPython, which isn't fantastic - on the CHIP you use whatever you (Go, Node, real
by akhilcacharya 11y ago
Well, on the ESP8266 you have to code directly in C with the library or in MicroPython, which isn't fantastic - on the CHIP you use whatever you (Go, Node, real Python, Java) that compiles to ARM for $4 more with easier I/O.
- kweks 11y agoYou can also use node.js, or lua on the ESP. It's not the perfect solution for everything; but it's tiny, and it costs $1.50 on aliexpress / banggood, and there's a ton of code for it. If you need a module that is mono-task, tiny, cheap and reliable, it's hard to go past the ESP. If you're looking for a full computer, then it's an obvious choice towards CHIP / Raspberry PI, etc
- sklogic 11y agoWhat's wrong with coding in C? You're unlikely to ever need anything too complex on such a device, so C is a totally adequate choice.
- mixedCase 11y agoTotally adequate if the goal is to produce content for the @InternetOfShit guy, unless "coffee at work" for you means sharing a drink and cracking jokes with Ken Thompson and John Carmack. I'd consider the ESP8266 if I could run Go or Rust on it.
- sklogic 11y agoMind explaining what did you mean by this? For the typical scale of a esp8266 project there is no difference between C and Go and Rust. Actually, C can be much safer of you follow MISRA and use all the appropriate tools.
- gh02t 11y agoMy point is though that these are complementary. Read sensor -> send data is a trivial task that takes a few lines of code, most of which is importing libraries and the CHIP is vastly overpowered. I'm saying, put your complex data logging/smart home/whatever logic in <language of choice> on the CHIP and have your sensors be simple (read: reliable) nodes that connect to the CHIP as a hub. It's not so much a matter of price as it is minimizing complexity. Also I don't know many people who use the native C SDK for the ESP8266. Most people use Arduino (simplified C++), but there's also Lua, Javascript and Python.
- StavrosK 11y agoThe problem with the CHIP/Pi Zero/etc is that I now have tens of devices sitting in my network, ready to be owned if I don't regularly update them all.
- gh02t 11y agoYeah, I have a separate encrypted Wifi that isn't routed to the Internet. Only a heavily firewalled RasPi is, so anything that needs data from the Internet has to ask that. I don't particularly trust any IoT devices security wise, either made by me or commercial, but it can be mitigated and I'm not really concerned.