SlowAES Library for Esp8266 (NodeMCU) Hello embedded friends, this article is about the web-scrapping protection slowAES (aes.js). If you want to get a web page with nodeMCU HttpClient and your response is different from what you see when browse it a browser and your response like below : < html > < body > < script type = "text/javascript" src = "/aes.js" > </ script > < script > function toNumbers ( d ) { var e = []; d. replace ( /(..)/g , function ( d ) { e. push ( parseInt (d, 16 )) }); return e } function toHex ( ) { for ( var d = [], d = 1 == arguments . length && arguments [ 0 ]. constructor == Array ? arguments [ 0 ] : arguments , e = "" , f = 0 ; f < d. length ; f++) e += ( 16 > d[f] ? "0" : "" ) + d[f]. toString ( 16 ); return e. toLowerCase () } var a = toNumbers ( "f655ba9d09a112d4968c63579db590b4
Let's code! Expalantions are in the code area. Happy Coding! /* * DHT 11 driving without library * * http://en.devrelerim.com * Author : Hakan OZMEN (hakkanr@gmail.com) * Date : 30.03.2021 * * You can change or share all / or same part of * this code. Free of charge! :) */ uint8_t data [ 5 ] ; // to save our 8bit * 5 data void setup ( ) { Serial . begin ( 115200 ) ; } /* * This function count an 8bit integer value * while given signal is not changed * no need to measure time counting is also * need time ;) */ uint8_t expectedSignal ( bool level ) { uint8_t count = 0 ; while ( digitalRead ( 2 ) == level ) count ++ ; return count ; } void loop ( ) { delay ( 2000 ) ; // wait 2 secs for sensor to initialize Serial . println ( "----------------------" ) ; pinMode ( 2 , INPUT_PULLUP ) ; // Standard is HIGH delay ( 1000 ) ; pinMode ( 2 , OUTPUT ) ; // make pin 2 output digitalWrite ( 2 , LO
In this article, we are looking for how DHT series sensors work and how can we drive them without using any library. Especially about DHT11 sensor here in this content. DHT 11 is a very cheap way to measure temperature and humidty in embedded systems, like arduino or STM based development cards You can see two types of DHT11 sensor which one have 3 pins with a board, another is just sensor. Difference between two is just a pullup resistor, If you have alone one, you should put a 10K resistor, signal pin to VCC pin to made them the same, there is no any difference except alone one has an unsused pin !? This Sensor can be used with Adafruit's DHT sensor library , with a requirement which is Adafruit's Unified Sensor Library. You can find them Library Manager on Arduino IDE . It's very easy! Just click Tools * Manage Libaries, you will face with Library manages which has a text box Fill your search... written. Text there DHT Sensor and find DHT Sensor Library
Comments
Post a Comment
You can share your experience, or ask anything about the topic, Let's write ;)