Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active Apr 17, 2019
Embed
What would you like to do?
ADC create adc1
TMP create temp_stm32_0
ADC open ch 16
ADC open ch 16
STM read int temp sensor
RND personalise with hw id 50 ff 6e 06 70 83 52 49 20 34 20 67
RND seed with temp entropy 20 00 ef 30 d1 f1 20 e0 20 d0 30 f0 10 1f fe 30 f0 2d 20 f0 3e 11 df 20 e0 2f 10 f0 10 e2 e1 10
ESP create esp8266_0
[
]
NET start
NET random device id 6c01307c0c24b971f04b249b71646600
[
ESP reset...
AT>
AT+RST
TMP poll temp_stm32_0
AT< ERROR
AT= OK
AT< WIFI DISCONNECT
AT< ets Jan 8 2013,rst cause:1, boot mode:(3,7)
AT< load 0x40100000, len 2408, room 16
AT< tail 8
AT< chksum 0xe5
AT< load 0x3ffe8000, len 776, room 0
AT< tail 8
AT< chksum 0x84
AT< load 0x3ffe8310, len 632, room 0
AT< tail 8
AT< chksum 0xd8
AT< csum 0xd8
AT< 2nd boot version : 1.6
AT< SPI Speed : 40MHz
AT< SPI Mode : QIO
AT< SPI Flash Size & Map: 8Mbit(512KB+512KB)
AT< jump to run user1 @ 1000
AT< ���p�o�s��n|� � �|rl��n�l�l�AT= ready
AT=
ESP reset OK
ESP setEcho off...
AT>
ATE0
AT< ERROR
AT< ATE0
AT= OK
ESP setEcho OK
AT> AT+CWMODE=3
AT= OK
AT> AT+CIPMUX=1
AT= OK
AT> AT+CWDHCP=1,1
AT= OK
ESP connect...
AT> AT+CWJAP="my_ssid","my_password_is_secret"
AT< WIFI CONNECTED
AT< WIFI GOT IP
AT= OK
ESP connect OK
AT> AT+CIFSR
AT< +CIFSR:APIP,"192.168.4.1"
AT< +CIFSR:APMAC,"ce:50:e3:09:07:5d"
AT= +CIFSR:STAIP,"192.168.1.143"
AT< +CIFSR:STAMAC,"cc:50:e3:09:07:5d"
AT= OK
]
[
ESP open...
AT> AT+CIPSTART=0,"UDP","coap.thethings.io",5683
AT< 0,CONNECT
AT= OK
ESP open OK
]
NET free mbuf 12
ADC open ch 16
STM read int temp sensor
TMP poll data: tmp 29.86
CP> payload size 105
{"values": [{"key": "device","value": "6c01307c0c24b971f04b249b71646600"},
{"key": "tmp","value": 29.86}]}
NET view your sensor at
https://blue-pill-geolocate.appspot.com?device=6c01307c0c24b971f04b249b71646600
[
ESP send udp
ESP send mbuf 177...
AT> AT+CIPSEND=0,177
AT< OK
AT= >
58 02 00 01 00 00 16 4a 27 2a e2 39 b2 76 32 06 74 68 69 6e 67 73 0d 1e 49 56 52 69 42 43 63 52 36 48 50 70 5f 43 63 5a 49 46 66 4f 5a 46 78 7a 5f 69 7a 6e 69 35 78 63 5f 4b 4f 2d 6b 67 53 41 32 59 38 11 32 51 32 ff
7b 22 76 61 6c 75 65 73 22 3a 20 5b 7b 22 6b 65 79 22 3a 20 22 64 65 76 69 63 65 22 2c 22 76 61 6c 75 65 22 3a 20 22 36 63 30 31 33 30 37 63 30 63 32 34 62 39 37 31 66 30 34 62 32 34 39 62 37 31 36 34 36 36 30 30 22 7d 2c 7b 22 6b 65 79 22 3a 20 22 74 6d 70 22 2c 22 76 61 6c 75 65 22 3a 20 32 39 2e 38 36 7d 5d 7d
AT<
AT< Recv 177 bytes
AT= SEND OK
ESP send mbuf OK
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment