aws / aws-iot-device-sdk-arduino-yun

SDK for connecting to AWS IoT from an Arduino Yún.
Apache License 2.0
163 stars 77 forks source link

setup failed -5 with garbage message #69

Open jemiar opened 5 years ago

jemiar commented 5 years ago

I followed the instruction to connect the Yun to the AWS IoT. My yun baud rate is 250000, but I keep the Serial.begin(115200) When I ran the the PubSub sample, I got these in the console:

AWS IoT SDK Version(dev) 2.2.0-

switching to jffs2

- init -

ell (ash)
__
one):/# 1
⸮>n]$

YA⸮(v]l]
y%⸮⸮⸮%"mV⸮.&⸮⸮6⸮M⸮?v~hN!⸮j⸮J⸮⸮%Bn⸮/]~h.X]⸮ ⸮*⸮J⸮S⸮%⸮nM7
HVm4l⸮⸮?-~⸮~M⸮.GlH⸮y!⸮X⸮-ha⸮JN⸮[a⸮JHLL
⸮[⸮
K⸮(
Setup failed!
-5

When I change the Serial.begin(250000), I got this:

AWS IoT SDK Version(dev) 2.2.0-

- regular preinit -
  9.330000] JFFS2 notice: (537) jffs2_build_xattr_subsystem:1
[   10.500000] sd 0:0:0:0: [sda] 3891200 512-byte logical block sd 0:0:0:0
sda] No Caching mode page present
[   10.510000] sd 0:0:0:0: [sda] No Caching mode page presenive

[   10.580000]  sda: sda1

switching to jffs2
]8⸮
>)@?AoHvC\⸮⸮y⸮⸮qLK⸮5⸮⸮X%⸮{b⸮LX⸮M⸮|⸮ms

Y⸮J(6]l]
Y⸮J⸮-⸮VV⸮.&x]⸮n⸮^HNl⸮Y⸮JX⸮-⸮-J}l^Hx]o:,1⸮J⸮⸮-⸮p_A/nMw
|fv⸮m~⸮^-⸮GlH⸮Y⸮JX/⸮-!⸮J⸮[A⸮JLL3    A<L
Setup failed!
-5

Can you help me with this issue? Thanks,